diff options
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r-- | uisimulator/common/stubs.c | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 0bbecdae41..ff66c1fab3 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -78,21 +78,19 @@ void audio_set_buffer_margin(int seconds) } #endif -/* Generic firmware stubs. */ -void backlight_on(void) +#ifdef CONFIG_BACKLIGHT +void sim_backlight(int value) { - /* we could do something better here! */ -} - -void backlight_off(void) -{ - /* we could do something better here! */ + DEBUGF("backlight: %s\n", (value > 0) ? "on" : "off"); } +#endif -void backlight_time(int dummy) +#ifdef HAVE_REMOTE_LCD +void sim_remote_backlight(int value) { - (void)dummy; + DEBUGF("remote backlight: %s\n", (value > 0) ? "on" : "off"); } +#endif int fat_startsector(void) { @@ -167,21 +165,6 @@ bool simulate_usb(void) return false; } -void backlight_set_timeout(int index) -{ - (void)index; -} - -void backlight_set_on_when_charging(bool beep) -{ - (void)beep; -} - -void remote_backlight_set_timeout(int index) -{ - (void)index; -} - int rtc_read(int address) { time_t now = time(NULL); |