Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Line_Follower.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def read_analog(self, trys=5):
low_byte = raw_result[i*2+1]
analog_result[i] = high_byte + low_byte
if analog_result[i] > 1024:
continue
return analog_result
break
else:
return analog_result
else:
raise IOError("Line follower read error. Please check the wiring.")

Expand Down