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:
Frank Gevaerts 2009-10-01 20:33:52 +00:00
parent 500bdda4f2
commit 7d11b7ac03

View file

@ -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
}