diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-06-22 06:11:51 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-06-22 06:11:51 +0000 |
| commit | 1b4e3091c8ab55b41dfe33038a56d04a67a0a3ea (patch) | |
| tree | 4e4b30baf48d0d413492d2c1bd9ddf905960562c /apps/main.c | |
| parent | 36e2393ef930c1fa6916033c448c60323a6ef7a6 (diff) | |
| download | rockbox-1b4e3091c8ab55b41dfe33038a56d04a67a0a3ea.zip rockbox-1b4e3091c8ab55b41dfe33038a56d04a67a0a3ea.tar.gz rockbox-1b4e3091c8ab55b41dfe33038a56d04a67a0a3ea.tar.bz2 rockbox-1b4e3091c8ab55b41dfe33038a56d04a67a0a3ea.tar.xz | |
no if(!usb_detect()) check around the autorock execution since we have early usb detection
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6797 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
| -rw-r--r-- | apps/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index ad61a27..568a7ef 100644 --- a/apps/main.c +++ b/apps/main.c @@ -286,13 +286,12 @@ void init(void) talk_init(); #ifdef AUTOROCK - if (!usb_detect()) { int fd; static const char filename[] = PLUGIN_DIR "/autostart.rock"; fd = open(filename, O_RDONLY); - if(fd >= 0) /* no complaint if it doesn't exit */ + if(fd >= 0) /* no complaint if it doesn't exist */ { close(fd); plugin_load((char*)filename, NULL); /* start if it does */ |