Fix doubling of remaining time
This commit is contained in:
parent
c9b70b29f8
commit
6859168de6
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue