diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 71cd4726cc..f7523d776c 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -519,6 +519,7 @@ void button_set_flip(bool flip) } } #endif /* HAVE_LCD_FLIP */ +#endif /* SIMULATOR */ #ifdef HAVE_BACKLIGHT void set_backlight_filter_keypress(bool value) @@ -533,7 +534,6 @@ void set_remote_backlight_filter_keypress(bool value) #endif #endif -#endif /* SIMULATOR */ /* * Get button pressed from hardware */ diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 45de7a469f..e2bae1cf7b 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -58,23 +58,6 @@ struct event_queue button_queue; static int btn = 0; /* Hopefully keeps track of currently pressed keys... */ -#ifdef HAVE_BACKLIGHT -static bool filter_first_keypress; - -void set_backlight_filter_keypress(bool value) -{ - filter_first_keypress = value; -} -#ifdef HAVE_REMOTE_LCD -static bool remote_filter_first_keypress; - -void set_remote_backlight_filter_keypress(bool value) -{ - remote_filter_first_keypress = value; -} -#endif -#endif - #ifdef HAS_BUTTON_HOLD bool hold_button_state = false; bool button_hold(void) {