Advertisement
Guest User

Untitled

a guest
Apr 19th, 2010
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.85 KB | None | 0 0
  1. diff --git a/rbutil/mkamsboot/dualboot/dualboot.S b/rbutil/mkamsboot/dualboot/dualboot.S
  2. index 8bb2059..2c86a75 100644
  3. --- a/rbutil/mkamsboot/dualboot/dualboot.S
  4. +++ b/rbutil/mkamsboot/dualboot/dualboot.S
  5. @@ -101,7 +101,7 @@ uclcopy:
  6.  /* TODO : M200V4 ? */
  7.  #if defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
  8.  #define USB_PIN 6
  9. -#elif defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(SANSA_FUZEV2)
  10. +#elif defined(SANSA_FUZE) || defined(SANSA_E200V2)
  11.  #define USB_PIN 3
  12.  #endif
  13.  
  14. @@ -223,6 +223,12 @@ uclcopy:
  15.  #ifdef SANSA_FUZEV2
  16.          /* the logic is reversed on the fuzev2 */
  17.          bne     boot_of
  18. +
  19. +        @ FAILSAFE @
  20. +        ldr     r1, [r0, #0x40]    /* read pin C4 */
  21. +        cmp     r1, #0             /* C4 != #0 means button pressed */
  22. +        bne     boot_of
  23. +
  24.  #else
  25.          beq     boot_of
  26.  #endif /* SANSA_FUZEV2 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement