Skip to content
Snippets Groups Projects
Commit 54d4ce18 authored by rodolakis's avatar rodolakis
Browse files

fixed boolean on light

parent e7f1b061
No related branches found
No related tags found
No related merge requests found
......@@ -552,9 +552,9 @@ def Octupole_light(ON_OFF):
Previously:light
"""
light_pv = '29ide:9440:1:bo_1.VAL'
if ON_OFF.lower() == 'on':
if ON_OFF.lower() == 'off':
light=0
elif ON_OFF.lower() == 'off':
elif ON_OFF.lower() == 'on':
light=1
caput(light_pv,light)
print(("Turning light "+ON_OFF+"."))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment