Skip to content

Commit e8f8883

Browse files
committed
Merge branch 'shutter_patch' into 'master'
shutter: fixed manual state settings. See merge request limagroup/Lima-tango-python!120
2 parents 8fddcf6 + d54381e commit e8f8883

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lima/Server/LimaCCDs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,10 +1553,7 @@ def write_shutter_manual_state(self, attr):
15531553
and shutter.getMode() == Core.ShutterManual
15541554
and state in ["OPEN", "CLOSE"]
15551555
):
1556-
if shutter.getState():
1557-
state = "OPEN"
1558-
else:
1559-
state = "CLOSED"
1556+
shutter.setState(state == "OPEN")
15601557
else:
15611558
raise Exception("Shutter not in manual mode")
15621559

0 commit comments

Comments
 (0)