aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common/print.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/print.h')
-rw-r--r--tmk_core/common/print.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h
index 1c7723621..04ca55810 100644
--- a/tmk_core/common/print.h
+++ b/tmk_core/common/print.h
@@ -72,7 +72,9 @@ extern "C"
# elif defined(PROTOCOL_CHIBIOS) /* PROTOCOL_CHIBIOS */
-# include "printf.h" // lib/printf/printf.h
+# ifndef TERMINAL_ENABLE
+# include "chibios/printf.h"
+# endif
# ifdef USER_PRINT /* USER_PRINT */
@@ -87,6 +89,7 @@ extern "C"
# define uprintf printf
# else /* NORMAL PRINT */
+
// Create user & normal print defines
# define print(s) printf(s)
# define println(s) printf(s "\r\n")