commit 9afe5089de97d70b8ddcc59e6290af30dbad47ca parent 52ec29537eb10b6669a91d565e20ffb5fea15186 Author: Chartreuse <kit@ckits.ca> Date: Mon, 6 Sep 2021 21:47:35 -0600 Fixed WDT timeout to actually be 1s (instead of 2s) Diffstat:
M | reform2-keyboard-fw/Keyboard.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reform2-keyboard-fw/Keyboard.c b/reform2-keyboard-fw/Keyboard.c @@ -855,7 +855,7 @@ void EnterPowerOff(void) do { wdt_reset(); WDTCSR = (1<<WDCE) | (1<<WDE); // Enable writes to watchdog - WDTCSR = (1<<WDIE) | (1<<WDE) | (1<<WDP2) | (1<<WDP1) | (1<<WDP0); // Interrupt mode, 1s timeout + WDTCSR = (1<<WDIE) | (1<<WDE) | (1<<WDP2) | (1<<WDP1); // Interrupt mode, 1s timeout // Enter Power-save mode set_sleep_mode(SLEEP_MODE_PWR_DOWN);