Skip to content

Commit 29b9050

Browse files
committed
Fix timer stopping buzzing when 10 seconds haven't passed
1 parent ad73e1b commit 29b9050

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/displayapp/screens/Timer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ void Timer::Refresh() {
122122
// Timer exists and has expired, so we're in ringing mode
123123
DisplayTime();
124124

125+
if (timerStatus->distanceToExpiry.count() < 10000 && !motorController.IsRinging()) {
126+
// If 10 seconds haven't passed and we're not buzzing, keep buzzing
127+
motorController.StartRinging();
128+
}
129+
125130
if (timerStatus->distanceToExpiry.count() > 10000 && motorController.IsRinging()) {
126131
// Stop buzzing after 10 seconds, but continue the counter
127132
motorController.StopRinging();

0 commit comments

Comments
 (0)