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

Commit

Permalink
Simplify condition for enforcing change event
Browse files Browse the repository at this point in the history
Redundant checks are removed to simplify the condition for enforcing
sending of change event. New condition is equivalent to the original
one. This is non-functional change.
  • Loading branch information
mliszcz committed Jan 23, 2020
1 parent ee262d4 commit 3bea45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cppapi/server/attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4081,8 +4081,8 @@ void Attribute::fire_change_event(DevFailed *except)

if (except
|| quality == Tango::ATTR_INVALID
|| ((! except) && prev_change_event.err)
|| (quality != Tango::ATTR_INVALID && old_quality == Tango::ATTR_INVALID))
|| prev_change_event.err
|| old_quality == Tango::ATTR_INVALID)
{
force_change = true;
}
Expand Down

0 comments on commit 3bea45c

Please sign in to comment.