]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Fix for warning of unused function standby()
authortmk <hasu@tmk-kbd.com>
Sat, 13 Jan 2018 23:14:16 +0000 (08:14 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 13 Jan 2018 23:14:16 +0000 (08:14 +0900)
tmk_core/common/avr/suspend.c

index 0e13eb69c0aaa33511c59d507958d15f6e9503ec..ea8099d067061fc178f775f7f86b47f7e431db83 100644 (file)
@@ -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)
 {