From 5690f78fb23ec66aeadf5ecf8200b5610b3e59d2 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 4 Jun 2005 23:15:52 +0000 Subject: Multiple choice LED configuration instead of HAVE_LED. Removes erroneous MMC icon display on iriver, and saves some code on Ondio. Removed invert_led() as it is no longer used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6568 a1c6a512-1295-4272-9138-f99709370657 --- apps/status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/status.c') diff --git a/apps/status.c b/apps/status.c index d7d3a21f5b..8d3d1748cb 100644 --- a/apps/status.c +++ b/apps/status.c @@ -60,7 +60,7 @@ struct status_info { bool keylock; bool battery_safe; bool redraw_volume; /* true if the volume gauge needs updating */ -#ifndef HAVE_LED +#if CONFIG_LED == LED_VIRTUAL bool led; /* disk LED simulation in the status bar */ #endif }; @@ -167,7 +167,7 @@ void status_draw(bool force_redraw) #endif info.repeat = global_settings.repeat_mode; info.playmode = current_playmode(); -#ifndef HAVE_LED +#if CONFIG_LED == LED_VIRTUAL info.led = led_read(HZ/2); /* delay should match polling interval */ #endif @@ -248,7 +248,7 @@ void status_draw(bool force_redraw) #ifdef HAVE_RTC statusbar_time(info.hour, info.minute); #endif -#ifndef HAVE_LED +#if CONFIG_LED == LED_VIRTUAL if (info.led) statusbar_led(); #endif -- cgit v1.2.3