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:
2025-05-19 11:37:12 +02:00
parent 29ecd9be17
commit ff8f6324e5
+1 -1
View File
@@ -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();