fix missing brace

This commit is contained in:
Silver Kuusik 2018-01-12 10:24:06 +01:00
parent 14e142615d
commit f2068e5135

3
hal.py
View File

@ -1,3 +1,4 @@
import ujson
from utime import sleep_us, sleep_ms
from machine import Pin, PWM, ADC, time_pulse_us
@ -133,7 +134,7 @@ class Sumorobot(object):
self.set_led(LEFT_LINE, line)
return line
elif dir == RIGHT:
line = abs(self.adc_line_right.read() - config["right_line_threshold"] > 1000
line = abs(self.adc_line_right.read() - config["right_line_threshold"]) > 1000
self.set_led(RIGHT_LINE, line)
return line