diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-01-14 22:48:54 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-01-14 22:48:54 -0500 |
commit | a54da1b92663606f5e5c18bc1eaec30c06847da1 (patch) | |
tree | a1b7485debf62a8c52d1db3199436cac2f3ce346 /protocol/pjrc/main.c | |
parent | 4225f0353c2eb85fbd8ca0622eb89757975093e4 (diff) | |
parent | 10a6b2c7d8bc9c5d2657acdeefa1102be5035280 (diff) | |
download | qmk_firmware-a54da1b92663606f5e5c18bc1eaec30c06847da1.tar.gz qmk_firmware-a54da1b92663606f5e5c18bc1eaec30c06847da1.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'protocol/pjrc/main.c')
-rw-r--r-- | protocol/pjrc/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocol/pjrc/main.c b/protocol/pjrc/main.c index 1ef87f8651..4f87a17364 100644 --- a/protocol/pjrc/main.c +++ b/protocol/pjrc/main.c @@ -24,6 +24,7 @@ #include <stdbool.h> #include <avr/io.h> #include <avr/interrupt.h> +#include <avr/wdt.h> #include <util/delay.h> #include "keyboard.h" #include "usb.h" @@ -60,7 +61,7 @@ int main(void) #endif while (1) { while (suspend) { - suspend_power_down(); + suspend_power_down(WDTO_120MS); if (remote_wakeup && suspend_wakeup_condition()) { usb_remote_wakeup(); } |