summaryrefslogtreecommitdiff
path: root/usb_keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r--usb_keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usb_keyboard.c b/usb_keyboard.c
index 44365bb857..dc781f0172 100644
--- a/usb_keyboard.c
+++ b/usb_keyboard.c
@@ -2,6 +2,7 @@
#include <avr/pgmspace.h>
#include "usb_keyboard.h"
#include "print.h"
+#include "debug.h"
static bool is_sent = false;
@@ -112,6 +113,7 @@ bool usb_keyboard_has_mod(void) {
}
void usb_keyboard_print(void) {
+ if (!debug_keyboard) return;
print("\nkeys: ");
for (int i = 0; i < 6; i++) { phex(keyboard_keys[i]); print(" "); }
print("\n");