diff options
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 @@ | |||
| 24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
| 25 | #include <avr/io.h> | 25 | #include <avr/io.h> |
| 26 | #include <avr/interrupt.h> | 26 | #include <avr/interrupt.h> |
| 27 | #include <avr/wdt.h> | ||
| 27 | #include <util/delay.h> | 28 | #include <util/delay.h> |
| 28 | #include "keyboard.h" | 29 | #include "keyboard.h" |
| 29 | #include "usb.h" | 30 | #include "usb.h" |
| @@ -60,7 +61,7 @@ int main(void) | |||
| 60 | #endif | 61 | #endif |
| 61 | while (1) { | 62 | while (1) { |
| 62 | while (suspend) { | 63 | while (suspend) { |
| 63 | suspend_power_down(); | 64 | suspend_power_down(WDTO_120MS); |
| 64 | if (remote_wakeup && suspend_wakeup_condition()) { | 65 | if (remote_wakeup && suspend_wakeup_condition()) { |
| 65 | usb_remote_wakeup(); | 66 | usb_remote_wakeup(); |
| 66 | } | 67 | } |
