]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/common/command.c
Merge pull request #230 from jerryen/master
[max/tmk_keyboard.git] / tmk_core / common / command.c
index a53cac61486253b48d8fe188fa6a476a076726e7..465aa21c7bccf3b7c5697bdae38e8178a165567f 100644 (file)
@@ -178,7 +178,9 @@ static void print_eeconfig(void)
 
 static bool command_common(uint8_t code)
 {
+#ifdef KEYBOARD_LOCK_ENABLE
     static host_driver_t *host_driver = 0;
+#endif
     switch (code) {
 #ifdef SLEEP_LED_ENABLE
         case KC_Z:
@@ -315,6 +317,9 @@ static bool command_common(uint8_t code)
             print_val_hex8(host_keyboard_leds());
             print_val_hex8(keyboard_protocol);
             print_val_hex8(keyboard_idle);
+#ifdef NKRO_ENABLE
+            print_val_hex8(keyboard_nkro);
+#endif
             print_val_hex32(timer_count);
 
 #ifdef PROTOCOL_PJRC