save more power (actually 6μA this time)
This commit is contained in:
parent
25d7967d69
commit
1f17f87822
@ -140,7 +140,7 @@ static void low_power_sleep_minutes(unsigned long t) {
|
|||||||
wdt_enable(WDTO_8S); /* Start watchdog timer for 8s. */
|
wdt_enable(WDTO_8S); /* Start watchdog timer for 8s. */
|
||||||
WDTCSR |= (1 << WDIE); /* Enable watchdog interrupt. */
|
WDTCSR |= (1 << WDIE); /* Enable watchdog interrupt. */
|
||||||
do {
|
do {
|
||||||
set_sleep_mode(SLEEP_MODE_PWR_SAVE);
|
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
|
||||||
cli();
|
cli();
|
||||||
sleep_enable();
|
sleep_enable();
|
||||||
sleep_bod_disable();
|
sleep_bod_disable();
|
||||||
|
Loading…
Reference in New Issue
Block a user