diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-04 23:15:52 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-04 23:15:52 +0000 |
commit | 5690f78fb23ec66aeadf5ecf8200b5610b3e59d2 (patch) | |
tree | 62bab156602ab905851fbb000c22d48bf2f8f85e /apps/status.c | |
parent | c9cc73ec1988dae9e3d1a09347ceac2a4ecc1f67 (diff) | |
download | rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.gz rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.zip |
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
Diffstat (limited to 'apps/status.c')
-rw-r--r-- | apps/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |