diff options
author | tmk <hasu@tmk-kbd.com> | 2015-01-03 04:02:48 +0100 |
---|---|---|
committer | tmk <hasu@tmk-kbd.com> | 2015-01-03 04:09:41 +0100 |
commit | 06527bde4f873ffc6eb8e359fb3b150e880b89ba (patch) | |
tree | 347b6886dc485091ff5ffcf211ab87b3c9ceda43 /protocol/pjrc/main.c | |
parent | 22d99f26af757c0bedb31ba3f63d793e4b2d4ca3 (diff) | |
download | qmk_firmware-06527bde4f873ffc6eb8e359fb3b150e880b89ba.tar.gz qmk_firmware-06527bde4f873ffc6eb8e359fb3b150e880b89ba.tar.xz |
bluefruit, pjrc: Update protocols for new API
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 1ef87f865..4f87a1736 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(); } |