mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-02-20 17:28:42 +01:00
fix(socket-signal): Store old value before updating to ensure correct subscription notifications
This commit is contained in:
@@ -133,11 +133,13 @@ class SocketSignal(abc.ABC, Signal):
|
||||
if use_complete is None:
|
||||
use_complete = False
|
||||
|
||||
old_value = self._readback
|
||||
self._socket_set(value)
|
||||
old_value = self._parent.position
|
||||
|
||||
timestamp = time.time()
|
||||
super().put(value, timestamp=timestamp, force=True)
|
||||
super().put(
|
||||
value, timestamp=timestamp, force=True
|
||||
) # Updates self._readback and runs SUB_VALUE subscriptions
|
||||
self._run_subs(
|
||||
sub_type=self.SUB_SETPOINT, old_value=old_value, value=value, timestamp=timestamp
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user