1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/firmware/target/arm/as3525/ascodec-as3525.c b/firmware/target/arm/a
index 52d50ef..1f73ced 100644
--- a/firmware/target/arm/as3525/ascodec-as3525.c
+++ b/firmware/target/arm/as3525/ascodec-as3525.c
@@ -190,6 +190,10 @@ void ascodec_init(void)
     VIC_INT_ENABLE = INTERRUPT_AUDIO;
 #endif

+    /* detect if USB was connected at startup since there is no transition */
+    if(ascodec_read(AS3514_IRQ_ENRD0) & USB_STATUS)
+        usb_insert_int();
+
     /* Generate irq for usb+charge status change */
     ascodec_write(AS3514_IRQ_ENRD0,
 #ifdef CONFIG_CHARGING /* m200v4 can't charge */