Skip to content

Commit 0c0bdfb

Browse files
committed
fix: _wait_for_fw_check wrong termination condition
1 parent 558cb6b commit 0c0bdfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino_alvik/arduino_alvik.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def _wait_for_fw_check(self, timeout=5) -> bool:
270270
start = ticks_ms()
271271
while self._fw_version == [None, None, None]:
272272
sleep_ms(20)
273-
if ticks_diff(ticks_ms(), start) < timeout * 1000:
273+
if ticks_diff(ticks_ms(), start) > timeout * 1000:
274274
print("Could not get FW version")
275275
return False
276276

0 commit comments

Comments
 (0)