Skip to content

Commit d54381e

Browse files
Operator for ID27claustre
authored andcommitted
shutter: fixed manual state settings.
1 parent e722898 commit d54381e

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)