From 461e0d3d8c82cc78d29d3115af3c417bb51bb50f Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 26 Oct 2010 21:32:45 +0900 Subject: ADD: keymap macro for human to read easier ADD: controller.h for controller board definition(teensy) ADD: debug toggle --- usb_keyboard.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usb_keyboard.c') 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 #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"); -- cgit v1.2.3