Skip to content

Commit 13122e9

Browse files
bradamillerclaude
andcommitted
Set timer mode to Timer.PERIODIC explicitly
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b8e2d15 commit 13122e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

XRPLib/rangefinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, trigger_pin: int|str = "RANGE_TRIGGER", echo_pin: int|str = "
5050
# Start a virtual timer to periodically send trigger pulses
5151
# 60ms period matches the HC-SR04 recommended minimum cycle time
5252
self._timer = Timer(-1)
53-
self._timer.init(period=60, callback=self._trigger_ping)
53+
self._timer.init(mode=Timer.PERIODIC, period=60, callback=self._trigger_ping)
5454

5555
def _trigger_ping(self, t):
5656
"""

0 commit comments

Comments
 (0)