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
diff --git a/firmware/target/arm/as3525/ascodec-as3525.c b/firmware/target/arm/as3525/ascodec-as3525.c
index 54a579a..0a8b5fe 100644
--- a/firmware/target/arm/as3525/ascodec-as3525.c
+++ b/firmware/target/arm/as3525/ascodec-as3525.c
@@ -284,7 +284,8 @@ void ascodec_init(void)
     VIC_INT_ENABLE = INTERRUPT_AUDIO;

     /* detect if USB was connected at startup since there is no transition */
-    if(ascodec_read(AS3514_IRQ_ENRD0) & USB_STATUS)
+    ascodec_enrd0_shadow = ascodec_read(AS3514_IRQ_ENRD0)
+    if(ascodec_enrd0_shadow & USB_STATUS)
         usb_insert_int();
     else
         usb_remove_int();