pylint is good to go
@@ -62,9 +62,9 @@ def pulse_ir():
def is_ball_in_hoop():
# Check if the IR sensor picked up the pulse
pulse = decoder.read_pulses(pulses)
- ir_sensor = (len(pulse))
+ ir_detect = (len(pulse))
- if ir_sensor == 0:
+ if ir_detect == 0:
return False # Sensor can see LED, return false.
return True # Sensor can't see LED, return true.
