diff --git a/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py b/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py index 94d4b97..80a5a7b 100644 --- a/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py +++ b/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py @@ -41,12 +41,12 @@ while True: m_l_speed_percent= max_speed_percent*cs_l_percent m_r_speed_percent= max_speed_percent*cs_r_percent # make sure percentage is not higher than possible (100%) and signal it through lights - if m_l_speed_percent >= 100: + if m_l_speed_percent > 100: m_l_speed_percent = 0 leds.set_color("LEFT", "AMBER") else: leds.set_color("LEFT", "GREEN") - if m_r_speed_percent >= 100: + if m_r_speed_percent > 100: m_r_speed_percent = 0 leds.set_color("RIGHT", "AMBER") else: