fix missing brace
This commit is contained in:
parent
14e142615d
commit
f2068e5135
3
hal.py
3
hal.py
@ -1,3 +1,4 @@
|
|||||||
|
import ujson
|
||||||
from utime import sleep_us, sleep_ms
|
from utime import sleep_us, sleep_ms
|
||||||
from machine import Pin, PWM, ADC, time_pulse_us
|
from machine import Pin, PWM, ADC, time_pulse_us
|
||||||
|
|
||||||
@ -133,7 +134,7 @@ class Sumorobot(object):
|
|||||||
self.set_led(LEFT_LINE, line)
|
self.set_led(LEFT_LINE, line)
|
||||||
return line
|
return line
|
||||||
elif dir == RIGHT:
|
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)
|
self.set_led(RIGHT_LINE, line)
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user