]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
host_driver is only used if KEYBOARD_LOCK_ENABLE is defined
authorobones <obones@free.fr>
Thu, 7 Jan 2016 13:40:53 +0000 (14:40 +0100)
committerobones <obones@free.fr>
Thu, 7 Jan 2016 13:40:53 +0000 (14:40 +0100)
tmk_core/common/command.c

index d59bb01bbcbd9151430fdf79444a84636a5cd9c9..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: