Fix comparison

This commit is contained in:
Craig Richardson 2018-05-15 15:39:42 +01:00
parent b5424c1f89
commit 46afca2a8f

View file

@ -49,8 +49,8 @@ def spamKey(code):
while True: while True:
knob = (getVoltage(analog2in)) knob = (getVoltage(analog2in))
if steps(knob) is 5: # the center position is active if steps(knob) == 5: # the center position is active
led.value = True led.value = True
elif steps(knob) is not 5: elif steps(knob) != 5:
led.value = False led.value = False
spamKey(steps(knob)) spamKey(steps(knob))