Compare commits

..

No commits in common. "main" and "segment_pwm" have entirely different histories.

View file

@ -245,7 +245,7 @@ static void update_countdown_fsm(uint32_t time_ms)
&& (time_in_state > 3000)
&& ((time_ms - buttons_get_last_change_time(BTN_ON)) > 500)
&& ((time_ms - buttons_get_last_change_time(BTN_ON)) % 500 == 0))) {
if(countdown_time_remaining < 10 * ONE_MINUTE) {
if(m_countdown_off_time < 10 * ONE_MINUTE) {
m_countdown_off_time += 10 * ONE_MINUTE;
} else {
m_countdown_off_time += countdown_time_remaining; // double remaining time