From 6859168de62e80b3c0180f163cd61beee4d1949c Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Mon, 20 May 2024 20:06:06 +0200 Subject: [PATCH] Fix doubling of remaining time --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 330d7ae..0cc194e 100644 --- a/src/main.c +++ b/src/main.c @@ -248,7 +248,7 @@ static void update_countdown_fsm(uint32_t time_ms) if(m_countdown_off_time < 10 * ONE_MINUTE) { m_countdown_off_time += 10 * ONE_MINUTE; } else { - m_countdown_off_time *= 2; + m_countdown_off_time += countdown_time_remaining; // double remaining time } if((m_countdown_off_time - time_ms) > 10 * ONE_HOUR) {