Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b48fc96

Browse files
committedFeb 26, 2024
mod: _idle updating every second
1 parent 27cc769 commit b48fc96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎arduino_alvik.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def begin(self) -> int:
173173
if not self.is_on():
174174
print("\nTurn on your Arduino Alvik!\n")
175175
sleep_ms(1000)
176-
self._idle()
176+
self._idle(1000)
177177
self._begin_update_thread()
178178
sleep_ms(100)
179179
self._reset_hw()
@@ -526,7 +526,7 @@ def _update(self, delay_=1):
526526
while True:
527527
if not self.is_on():
528528
print("Alvik is off")
529-
self._idle(delay_, check_on_thread=True)
529+
self._idle(1000, check_on_thread=True)
530530
self._reset_hw()
531531
self._flush_uart()
532532
sleep_ms(1000)

0 commit comments

Comments
 (0)
Please sign in to comment.