From 8c91a997b3a79c52797269612aef43faf58f01cc Mon Sep 17 00:00:00 2001 From: alex-ong Date: Mon, 22 Jan 2018 13:55:11 +1100 Subject: [PATCH] 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) { -- 2.46.2