]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - usb_keyboard.c
ADD: keymap macro for human to read easier
[max/tmk_keyboard.git] / usb_keyboard.c
index 44365bb857b1441abea8df57ee9bf046d3536530..dc781f01722f32f65c07cf1ae162fe5e8b5c2534 100644 (file)
@@ -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");