mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-21 19:12:39 -05:00
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
This commit is contained in:
parent
36e2393ef9
commit
1b4e3091c8
1 changed files with 1 additions and 2 deletions
|
|
@ -286,13 +286,12 @@ void init(void)
|
||||||
talk_init();
|
talk_init();
|
||||||
|
|
||||||
#ifdef AUTOROCK
|
#ifdef AUTOROCK
|
||||||
if (!usb_detect())
|
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
static const char filename[] = PLUGIN_DIR "/autostart.rock";
|
static const char filename[] = PLUGIN_DIR "/autostart.rock";
|
||||||
|
|
||||||
fd = open(filename, O_RDONLY);
|
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);
|
close(fd);
|
||||||
plugin_load((char*)filename, NULL); /* start if it does */
|
plugin_load((char*)filename, NULL); /* start if it does */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue