From 8c91a997b3a79c52797269612aef43faf58f01cc Mon Sep 17 00:00:00 2001 From: alex-ong Date: Mon, 22 Jan 2018 13:55:11 +1100 Subject: [PATCH 1/2] core: Fix for unused function when compiling without MOUSEKEY_ENABLE --- 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 bb471e88..688e460e 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -629,6 +629,7 @@ static bool mousekey_console(uint8_t code) /*********************************************************** * Utilities ***********************************************************/ +#if MOUSEKEY_ENABLE static uint8_t numkey2num(uint8_t code) { switch (code) { @@ -645,6 +646,7 @@ static uint8_t numkey2num(uint8_t code) } return 0; } +#endif static void switch_default_layer(uint8_t layer) { From 8770269e1e826ab07347093418cc70ff043d8743 Mon Sep 17 00:00:00 2001 From: alex-ong Date: Mon, 22 Jan 2018 14:50:38 +1100 Subject: [PATCH 2/2] core: Fix for un-defined function when compiling without MOUSEKEY_ENABLE --- tmk_core/common/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 688e460e..e08f91e5 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -57,9 +57,10 @@ static void command_console_help(void); #ifdef MOUSEKEY_ENABLE static bool mousekey_console(uint8_t code); static void mousekey_console_help(void); +static uint8_t numkey2num(uint8_t code); #endif -static uint8_t numkey2num(uint8_t code); + static void switch_default_layer(uint8_t layer);