1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: dualboot/dualboot.S
===================================================================
--- dualboot/dualboot.S (revision 25606)
+++ dualboot/dualboot.S (working copy)
@@ -111,7 +111,13 @@
         str     r1, [r0, #0x400]
         ldr     r1, [r0, #(4*(1<<USB_PIN))]
         cmp     r1, #0
-        bne     boot_of
+       @ bne     boot_of
+
+wait:   mvn     r0, #0
+1:      subs    r0, r0, #1
+        bne     1b
+
+        b     boot_of
 #endif
 #if defined(SANSA_C200V2)
         /* Instead of checking the GPIO, check the audio master IRQ_ENRD0