Skip to content

Commit 2c93f39

Browse files
committed
Fix bug in waveform change comparison
1 parent b748856 commit 2c93f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

softioc/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def _write_value(self, record, value):
365365
record.NORD = nord
366366

367367
def _compare_values(self, value, other):
368-
return numpy.all(value == other)
368+
return len(value) == len(other) and numpy.all(value == other)
369369

370370
def _value_to_epics(self, value):
371371
# Ensure we always convert incoming value into numpy array, regardless

0 commit comments

Comments
 (0)