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/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/main.c') 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) #ifdef AUTOROCK if (!usb_detect()) - { + { int fd; static const char filename[] = PLUGIN_DIR "/autostart.rock"; @@ -303,8 +303,10 @@ int main(void) app_main(); while(1) { +#if CONFIG_LED == LED_REAL led(true); sleep(HZ/10); led(false); sleep(HZ/10); +#endif } return 0; } -- cgit v1.2.3