Fix doubling of remaining time

This commit is contained in:
Thomas Kolb 2024-05-20 20:06:06 +02:00
parent c9b70b29f8
commit 6859168de6

View file

@ -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) {