void init_tmr()
{
- WDTCR = _BV(WDIE) | _BV(WDP1); // interrupt mode, 64 ms
+ wdt_enable(WDTO_60MS);
+ WDTCR |= _BV(WDIE); // interrupt mode, 64 ms
}
void susp_tmr()
timer_check_buttons();
patterns_next_tick();
+ pwm_disable_if_not_needed();
timer_start_slow_adcs();
if ((jiffies & 0x7FF) == 0)
ambient_log_min_max();
+
+ WDTCR |= _BV(WDIE); // avoid WDT reset next time
}