mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
get rid of one hardcoded 512. SECTOR_SIZE is still there. It should probably move up (to storage.h?) so fat and usb storage can share it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22869 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
500bdda4f2
commit
7d11b7ac03
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ static bool check_disk_present(IF_MD_NONVOID(int volume))
|
|||
#ifdef USB_USE_RAMDISK
|
||||
return true;
|
||||
#else
|
||||
unsigned char sector[512];
|
||||
unsigned char sector[SECTOR_SIZE];
|
||||
return storage_read_sectors(volume,0,1,sector) == 0;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue