Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 28th, 2011  |  syntax: Diff  |  size: 0.65 KB  |  views: 101  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: firmware/target/arm/as3525/sd-as3525v2.c
  2. ===================================================================
  3. --- firmware/target/arm/as3525/sd-as3525v2.c    (revision 29655)
  4. +++ firmware/target/arm/as3525/sd-as3525v2.c    (working copy)
  5. @@ -399,9 +399,9 @@
  6.          !send_cmd(drive, SD_APP_CMD, card_info[drive].rca, MCI_RESP, response))
  7.          return false;
  8.  
  9. -#if defined(HAVE_MULTIDRIVE)
  10. -    if(sd_present(SD_SLOT_AS3525))
  11. -        GPIOB_PIN(5) = (1-drive) << 5;
  12. +#if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS)
  13. +    if (amsv2_variant == 1)
  14. +        GPIOB_PIN(5) = (drive == INTERNAL_AS3525) ? 1 << 5 : 0;
  15.  #endif
  16.  
  17.      MCI_ARGUMENT = arg;
clone this paste RAW Paste Data