Skip to content
Snippets Groups Projects
Commit bf3ab237 authored by Claudio Scafuri's avatar Claudio Scafuri :speech_balloon:
Browse files

push current when changing state and toggling ripple off

parent 54823814
No related branches found
No related tags found
No related merge requests found
......@@ -352,6 +352,8 @@ void SimulatedE2PS::write_current(Tango::WAttribute &attr)
/* clang-format on */
// Add your own code
_current = w_val;
push_change_event("Current", &_current); //force update in any case
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::write_current
}
......@@ -474,6 +476,10 @@ void SimulatedE2PS::write_AddRipple(Tango::WAttribute &attr)
/* clang-format on */
// Add your own code
_add_ripple = w_val;
if (!_add_ripple) {
_current_read = _current;
push_change_event("current", &_current_read);
}
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::write_AddRipple
}
......@@ -554,9 +560,12 @@ void SimulatedE2PS::on()
/* clang-format on */
// Add your own code
set_state(Tango::ON);
set_status("On");
push_change_event("State");
push_change_event("current",&_current_read);
push_change_event("currentSet",&_current);
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::on
......
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