summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-10-30 18:00:43 -0700
committerJack Humbert <jack.humb@gmail.com>2018-11-06 00:40:02 -0500
commit40313cfa3b4a4f1643382f0446e0a889ef3e76dc (patch)
tree47a6e3a1ae4f48bcf75f8a85857f3b5fbff06b84 /tmk_core
parentec34b5386455a4170db97aad21dc50b77d6ddfdd (diff)
Fix Terminal feature on ChibiOS
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common.mk4
-rw-r--r--tmk_core/common/print.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 3844b13d48..65dcf96f66 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -43,9 +43,11 @@ ifeq ($(PLATFORM),CHIBIOS)
TMK_COMMON_DEFS += -DSTM32_EEPROM_ENABLE
else
TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c
-endif
+ endif
ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c
+ else ifeq($(strip $(TERMINAL_ENABLE)), yes)
+ TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c
endif
endif
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h
index d945276572..06c6cbd7f1 100644
--- a/tmk_core/common/print.h
+++ b/tmk_core/common/print.h
@@ -73,7 +73,9 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t));
#elif defined(PROTOCOL_CHIBIOS) /* PROTOCOL_CHIBIOS */
+#ifndef TERMINAL_ENABLE
# include "chibios/printf.h"
+#endif
# ifdef USER_PRINT /* USER_PRINT */