button: fix compile error when CONFIG_LED_COMMON not defined
Compiler complains about debug_mode_blink_led defined but not used.
Fix this.
TEST=make
BRANCH=None
Commit-Ready: Ting Shen
Tested-by: Ting Shen
@@ -471,11 +471,13 @@ static int debug_button_pressed(int mask)
return debug_button_mask() == mask;
}
+#ifdef CONFIG_LED_COMMON
static int debug_mode_blink_led(void)
{
return ((curr_debug_state != STATE_DEBUG_NONE) &&
(curr_debug_state != STATE_DEBUG_CHECK));
}
+#endif
static void debug_mode_transition(enum debug_state next_state)
{
