Skip to content

Commit 5b4a9cb

Browse files
committed
Tone: fix infinite duration
Former-commit-id: 4ed3fb7
1 parent dd23abe commit 5b4a9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Tone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void tone_timer_callback(timer_callback_args_t *args);
66
class Tone {
77
uint32_t frequency;
88
uint32_t duration;
9-
uint32_t limit;
9+
uint32_t limit = UINT32_MAX;
1010
pin_size_t pin;
1111
uint8_t status = LOW;
1212
static FspTimer tone_timer;

0 commit comments

Comments
 (0)