From b9a9e80d9dd81c81fef7f28cccf5b4eb89f5f541 Mon Sep 17 00:00:00 2001 From: nuess0r Date: Fri, 3 Jan 2020 00:00:30 +0100 Subject: [PATCH 1/2] Fix for: VUSB: undefined references #547 Report keyboard_protocol and keyboard_idle only when they are implemented --- tmk_core/common/command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index e08f91e513..caf662b6d8 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -334,8 +334,10 @@ static bool command_common(uint8_t code) case KC_S: print("\n\t- Status -\n"); print_val_hex8(host_keyboard_leds()); +#ifndef PROTOCOL_VUSB print_val_hex8(keyboard_protocol); print_val_hex8(keyboard_idle); +#endif #ifdef NKRO_ENABLE print_val_hex8(keyboard_nkro); #endif From 7326d32ee514cfcf53e754304d9d98d48ebf1c8c Mon Sep 17 00:00:00 2001 From: nuess0r Date: Fri, 3 Jan 2020 00:48:45 +0100 Subject: [PATCH 2/2] Change VUSB NO_UART check the same style as other Makefile options Same yes/no posibility than the other documented options. Before it worked when set to yes, but set to no also disabled it. --- tmk_core/protocol/vusb.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmk_core/protocol/vusb.mk b/tmk_core/protocol/vusb.mk index d541dd0fad..d0cdc3d885 100644 --- a/tmk_core/protocol/vusb.mk +++ b/tmk_core/protocol/vusb.mk @@ -9,12 +9,12 @@ SRC += $(VUSB_DIR)/main.c \ $(VUSB_DIR)/usbdrv/oddebug.c -ifdef NO_UART +ifeq (yes,$(strip $(NO_UART))) OPT_DEFS += -DNO_UART SRC += $(COMMON_DIR)/sendchar_null.c else SRC += $(COMMON_DIR)/sendchar_uart.c \ - $(COMMON_DIR)/uart.c + $(COMMON_DIR)/avr/uart.c endif