Commit 1e184e6c authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Fix the status reported to panels

parent 246a751b
......@@ -1302,10 +1302,15 @@ void Agilent4uhv::read_StatMaskX(Tango::Attribute &attr)
string fs;
read_window_from_cache(603, fs);
if (fs[fs.size()-channel] == '1')
if (fs[fs.size()-channel] == '0')
*att_value |= 0x1 << 3;
// FIXME bit 4,5,6 and 7 aren't implemented
string sp;
read_window_from_cache(602, sp);
if (sp[sp.size()-channel] == '1')
*att_value |= 0x1 << 4;
// FIXME bits 5,6 and 7 aren't implemented
attr.set_value(att_value);
......
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