summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-04 23:15:52 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-04 23:15:52 +0000
commit5690f78fb23ec66aeadf5ecf8200b5610b3e59d2 (patch)
tree62bab156602ab905851fbb000c22d48bf2f8f85e /apps/main.c
parentc9cc73ec1988dae9e3d1a09347ceac2a4ecc1f67 (diff)
downloadrockbox-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/main.c')
-rw-r--r--apps/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c
index 537c3da4dc..5a47e720e0 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -277,7 +277,7 @@ void init(void)
277 277
278#ifdef AUTOROCK 278#ifdef AUTOROCK
279 if (!usb_detect()) 279 if (!usb_detect())
280 { 280 {
281 int fd; 281 int fd;
282 static const char filename[] = PLUGIN_DIR "/autostart.rock"; 282 static const char filename[] = PLUGIN_DIR "/autostart.rock";
283 283
@@ -303,8 +303,10 @@ int main(void)
303 app_main(); 303 app_main();
304 304
305 while(1) { 305 while(1) {
306#if CONFIG_LED == LED_REAL
306 led(true); sleep(HZ/10); 307 led(true); sleep(HZ/10);
307 led(false); sleep(HZ/10); 308 led(false); sleep(HZ/10);
309#endif
308 } 310 }
309 return 0; 311 return 0;
310} 312}