From: tmk Date: Sat, 13 Jan 2018 23:14:16 +0000 (+0900) Subject: core: Fix for warning of unused function standby() X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=01b881e87eb941fb483e5db2491af488e468ee46;p=max%2Ftmk_keyboard.git core: Fix for warning of unused function standby() --- diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c index 0e13eb69..ea8099d0 100644 --- a/tmk_core/common/avr/suspend.c +++ b/tmk_core/common/avr/suspend.c @@ -70,6 +70,7 @@ static void power_down(uint8_t wdto) wdt_disable(); } +#ifdef SUSPEND_MODE_STANDBY static void standby(void) { #ifdef SLEEP_MODE_STANDBY @@ -80,6 +81,7 @@ static void standby(void) sleep_disable(); #endif } +#endif static void idle(void) {