Skip to content
Snippets Groups Projects
Commit 9233b763 authored by Alain BUTEAU's avatar Alain BUTEAU
Browse files

TANGODEVIC-1155

la commande AUTOSEARCHGAIN réclame un INIT sur ds_FemtoCurrentAmplifier
parent 00a1fa4b
Branches
Tags
No related merge requests found
......@@ -149,6 +149,12 @@ namespace FemtoCurrentAmplifier_ns
dio_board_proxy = 0;
}
if (auto_search_gain_thread !=0)
{
delete auto_search_gain_thread;
auto_search_gain_thread= 0;
}
if(mutex)
{
delete mutex;
......@@ -984,10 +990,18 @@ void FemtoCurrentAmplifier::read_gainSelectedNum(Tango::Attribute &attr)
set_state(Tango::RUNNING);
set_status("Femto Device is automatically searching the Gain");
//- Start the thread
if (auto_search_gain_thread ==0)
//- Delete existing thread
if (auto_search_gain_thread !=0)
{
delete auto_search_gain_thread;
auto_search_gain_thread= 0;
}
// start a new thread
auto_search_gain_thread = new AutoSearchGainThread(this, mutex);
else
}
// **************************************************************************
......@@ -1008,7 +1022,7 @@ void FemtoCurrentAmplifier::read_gainSelectedNum(Tango::Attribute &attr)
//- what do we tried
std::string("new DeviceProxyHelper on ") + dIOBoardName,
//- origin
"FemtoCurrentAmplifier::init_device"
"FemtoCurrentAmplifier::creates_dio_proxy"
);
is_dio_proxy_created = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment