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 { | |||
60 | bool keylock; | 60 | bool keylock; |
61 | bool battery_safe; | 61 | bool battery_safe; |
62 | bool redraw_volume; /* true if the volume gauge needs updating */ | 62 | bool redraw_volume; /* true if the volume gauge needs updating */ |
63 | #ifndef HAVE_LED | 63 | #if CONFIG_LED == LED_VIRTUAL |
64 | bool led; /* disk LED simulation in the status bar */ | 64 | bool led; /* disk LED simulation in the status bar */ |
65 | #endif | 65 | #endif |
66 | }; | 66 | }; |
@@ -167,7 +167,7 @@ void status_draw(bool force_redraw) | |||
167 | #endif | 167 | #endif |
168 | info.repeat = global_settings.repeat_mode; | 168 | info.repeat = global_settings.repeat_mode; |
169 | info.playmode = current_playmode(); | 169 | info.playmode = current_playmode(); |
170 | #ifndef HAVE_LED | 170 | #if CONFIG_LED == LED_VIRTUAL |
171 | info.led = led_read(HZ/2); /* delay should match polling interval */ | 171 | info.led = led_read(HZ/2); /* delay should match polling interval */ |
172 | #endif | 172 | #endif |
173 | 173 | ||
@@ -248,7 +248,7 @@ void status_draw(bool force_redraw) | |||
248 | #ifdef HAVE_RTC | 248 | #ifdef HAVE_RTC |
249 | statusbar_time(info.hour, info.minute); | 249 | statusbar_time(info.hour, info.minute); |
250 | #endif | 250 | #endif |
251 | #ifndef HAVE_LED | 251 | #if CONFIG_LED == LED_VIRTUAL |
252 | if (info.led) | 252 | if (info.led) |
253 | statusbar_led(); | 253 | statusbar_led(); |
254 | #endif | 254 | #endif |