summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2016-08-26 00:06:16 +0200
committerCástor Muñoz <cmvidal@gmail.com>2016-08-26 00:16:16 +0200
commitcbcc8f368f13a699bea563a136304acaa1dc8a8e (patch)
tree2d78f53193ee6206e82137dd2466bf605634d8a7
parent108a0f3fd044c1523084fdb3d512dd09d20b520a (diff)
downloadrockbox-cbcc8f368f13a699bea563a136304acaa1dc8a8e.tar.gz
rockbox-cbcc8f368f13a699bea563a136304acaa1dc8a8e.tar.bz2
rockbox-cbcc8f368f13a699bea563a136304acaa1dc8a8e.zip
iAP: fix USB storage mount after using an iAP accessory
Change-Id: Ieb10da5850e9a2fa751142c2cf29447dccec0a17
-rw-r--r--apps/iap/iap-core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/iap/iap-core.c b/apps/iap/iap-core.c
index e41660392c..653396ae6a 100644
--- a/apps/iap/iap-core.c
+++ b/apps/iap/iap-core.c
@@ -42,6 +42,7 @@
#include "sound.h"
#include "action.h"
#include "powermgmt.h"
+#include "usb.h"
#include "tuner.h"
#include "ipod_remote_tuner.h"
@@ -348,6 +349,13 @@ static void iap_thread(void)
iap_shutdown = true;
break;
}
+
+ /* Ack USB thread */
+ case SYS_USB_CONNECTED:
+ {
+ usb_acknowledge(SYS_USB_CONNECTED_ACK);
+ break;
+ }
}
}
}