Fix comparison
This commit is contained in:
parent
b5424c1f89
commit
46afca2a8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue