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 | |
parent | 4225f0353c2eb85fbd8ca0622eb89757975093e4 (diff) | |
parent | 10a6b2c7d8bc9c5d2657acdeefa1102be5035280 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'protocol/pjrc')
-rw-r--r-- | protocol/pjrc/main.c | 3 | ||||
-rw-r--r-- | protocol/pjrc/usb_keyboard.c | 2 |
2 files changed, 3 insertions, 2 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(); } diff --git a/protocol/pjrc/usb_keyboard.c b/protocol/pjrc/usb_keyboard.c index 758a4edc6c..4b87b5d7b5 100644 --- a/protocol/pjrc/usb_keyboard.c +++ b/protocol/pjrc/usb_keyboard.c @@ -74,7 +74,7 @@ void usb_keyboard_print_report(report_keyboard_t *report) { if (!debug_keyboard) return; print("keys: "); - for (int i = 0; i < REPORT_KEYS; i++) { phex(report->keys[i]); print(" "); } + for (int i = 0; i < KEYBOARD_REPORT_KEYS; i++) { phex(report->keys[i]); print(" "); } print(" mods: "); phex(report->mods); print("\n"); } |