Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.

My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.


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 */