Commit ec34ecf8 authored by Claudio Scafuri's avatar Claudio Scafuri 💬
Browse files

fixed YP_B6_READ

parent fb86a7b7
......@@ -493,6 +493,8 @@ void BPMID::init_device()
attr_YP_B9_read=&(local_data.yb_p[8]);
attr_YP_B10_read=&(local_data.yb_p[9]);
attr_YP_B11_read=&(local_data.yb_p[10]);
//short straight
attr_X_SS1_read=&(local_data.xs[0]);
......@@ -519,7 +521,7 @@ void BPMID::init_device()
activeThread = new bpmidThread(this, &shared_data, main_mutex, *main_condition, minimumThreadRefreshPeriod, threadRefreshPeriod, beaminfhost);
set_state(Tango::INIT);
set_status("BPMID: init ok");
/*----- PROTECTED REGION END -----*/ // BPMID::init_device
}
......@@ -1614,7 +1616,7 @@ void BPMID::read_YP_B6(Tango::Attribute &attr)
/*----- PROTECTED REGION ID(BPMID::read_YP_B6) ENABLED START -----*/
// Set the attribute value
if(validY_p){
attr.set_value(attr_Y_B6_read);
attr.set_value(attr_YP_B6_read);
attr.set_date(last_update);
}
else
......@@ -2653,7 +2655,7 @@ void BPMID::lock_update_calculate()
validY=true;
validX_p=true;
validY_p=true;
INFO_STREAM << "BPMID: working " << endl;
DEBUG_STREAM << "BPMID: working " << endl;
set_state(Tango::ON);
set_status("BPMID: working");
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment