Use deeper sleep mode to reduce current draw during idle
Using `SLEEP_MODE_PWR_DOWN` turns off everything (I/O, clocks, ADC etc.) except the watchdog
This commit is contained in:
@@ -20,7 +20,7 @@ void watchdogs(void) {
|
||||
}
|
||||
|
||||
void enterSleep(void) {
|
||||
set_sleep_mode(SLEEP_MODE_IDLE);
|
||||
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
|
||||
sleep_enable();
|
||||
sleep_cpu();
|
||||
sleep_disable();
|
||||
|
||||
Reference in New Issue
Block a user