diff --git a/iexcode/instruments/Octupole.py b/iexcode/instruments/Octupole.py index 6142729f67ba3622e80c0deeb45333686a0c7f45..569614f95bf1519206da71f31c1f24efc98314ba 100644 --- a/iexcode/instruments/Octupole.py +++ b/iexcode/instruments/Octupole.py @@ -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+"."))