Commit 688bb054 authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Fix set PMTvoltage at reconnection

parent 580cf8a3
...@@ -266,8 +266,8 @@ void SFE::always_executed_hook() ...@@ -266,8 +266,8 @@ void SFE::always_executed_hook()
try try
{ {
Tango::MultiAttribute *attr_list = get_device_attr(); Tango::MultiAttribute *attr_list = get_device_attr();
Tango::WAttribute &attr = attr_list->get_w_attr_by_name ("PMTVoltage"); Tango::WAttribute &attr = attr_list->get_w_attr_by_name ("PMTvoltage");
Tango::DevDouble w_val; Tango::DevLong w_val;
attr.get_write_value(w_val); attr.get_write_value(w_val);
stringstream cmd; stringstream cmd;
cmd << "SV:" << w_val; cmd << "SV:" << w_val;
...@@ -276,7 +276,7 @@ void SFE::always_executed_hook() ...@@ -276,7 +276,7 @@ void SFE::always_executed_hook()
} }
catch(Tango::DevFailed &e) catch(Tango::DevFailed &e)
{ {
INFO_STREAM << __func__<<": error initializing PMTVoltage after reconnection: " << e.errors[0].desc; INFO_STREAM << __func__<<": error initializing PMTvoltage after reconnection: " << e.errors[0].desc;
} }
} }
......
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