diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-02-19 14:44:31 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-02-19 14:44:31 +0000 |
commit | 2e429ff76221e2d39a35d8875c6a3add76191519 (patch) | |
tree | bd4c36cd027d12501f0bd8970a580d6eac914f62 /apps | |
parent | 9828f08d9b01af15a2d4d9e73e82e04fd0d1225b (diff) | |
download | rockbox-2e429ff76221e2d39a35d8875c6a3add76191519.tar.gz rockbox-2e429ff76221e2d39a35d8875c6a3add76191519.zip |
a bit nicer: delay of the disk activity indicator is supplied by app layer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6019 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 2af3ea91a4..562cd50964 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -160,7 +160,7 @@ void status_draw(bool force_redraw) | |||
160 | info.repeat = global_settings.repeat_mode; | 160 | info.repeat = global_settings.repeat_mode; |
161 | info.playmode = current_playmode(); | 161 | info.playmode = current_playmode(); |
162 | #ifndef HAVE_LED | 162 | #ifndef HAVE_LED |
163 | info.led = led_read(); | 163 | info.led = led_read(HZ/2); /* delay should match polling interval */ |
164 | #endif | 164 | #endif |
165 | 165 | ||
166 | /* only redraw if forced to, or info has changed */ | 166 | /* only redraw if forced to, or info has changed */ |
@@ -241,8 +241,8 @@ void status_draw(bool force_redraw) | |||
241 | statusbar_time(info.hour, info.minute); | 241 | statusbar_time(info.hour, info.minute); |
242 | #endif | 242 | #endif |
243 | #ifndef HAVE_LED | 243 | #ifndef HAVE_LED |
244 | if (info.led) | 244 | if (info.led) |
245 | statusbar_led(); | 245 | statusbar_led(); |
246 | #endif | 246 | #endif |
247 | lcd_update_rect(0, 0, LCD_WIDTH, STATUSBAR_HEIGHT); | 247 | lcd_update_rect(0, 0, LCD_WIDTH, STATUSBAR_HEIGHT); |
248 | lastinfo = info; | 248 | lastinfo = info; |