Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Fix WAttribute::rollback() for DEV_USHORT (#541) (#542)
Browse files Browse the repository at this point in the history
The DevUShort WRITE only attribute value was not rolled back correctly to the previous valid value in 
some specific cases (exception thrown in the device server write method associated to this attribute, 
exception thrown by read_attr_hardware() method or exception thrown because it is not allowed to read 
this attribute in the current state).
Now it is!
  • Loading branch information
bourtemb authored Mar 18, 2019
1 parent 8b31bf4 commit bc914c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cppapi/server/w_attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ void WAttribute::rollback()
break;

case Tango::DEV_USHORT :
double_val = old_double_val;
ushort_val = old_ushort_val;
break;

case Tango::DEV_UCHAR :
Expand Down

0 comments on commit bc914c8

Please sign in to comment.