Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /* Only switch banks for internal storage */
  2. if(drive == INTERNAL_AS3525)
  3. {
  4. /* unsigned int bank = bank_start / BLOCKS_PER_BANK; */
  5. /* bank_start -= bank * BLOCKS_PER_BANK; */
  6.  
  7. unsigned int bank = 0;
  8. while(bank_start >= BLOCKS_PER_BANK)
  9. {
  10.  
  11. bank_start -= BLOCKS_PER_BANK;
  12. bank++;
  13. }
  14.  
  15.  
  16.  
  17.  
  18. /* Switch bank if needed */
  19. if(card_info[INTERNAL_AS3525].current_bank != bank)
  20. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement