Skip to content
Snippets Groups Projects
Commit 8a6b9021 authored by Stéphane Poirier's avatar Stéphane Poirier
Browse files

Fixed state management in SNAP command

parent 2964ed82
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,8 @@ void SpectrometerTask::snap( size_t tmo_ms )
{
try
{
m_cfg.host_device->set_state(Tango::RUNNING);
//- synchronous approach: "post then wait for the message to be handled"
if( tmo_ms )
wait_msg_handled(kSNAP_ACQ_MSG, tmo_ms);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment