From: alex-ong Date: Mon, 22 Jan 2018 02:55:11 +0000 (+1100) Subject: core: Fix for unused function when compiling without MOUSEKEY_ENABLE X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=8c91a997b3a79c52797269612aef43faf58f01cc;p=max%2Ftmk_keyboard.git core: Fix for unused function when compiling without MOUSEKEY_ENABLE --- 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) {