summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-10-01 20:33:52 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-10-01 20:33:52 +0000
commit7d11b7ac03048b4c9bf89f5268b8632d15b71493 (patch)
tree171e5a3d1ad41200f4710f7dcdaf57806515475e /firmware
parent500bdda4f2010b81fb638a26dbbc0074682989da (diff)
downloadrockbox-7d11b7ac03048b4c9bf89f5268b8632d15b71493.tar.gz
rockbox-7d11b7ac03048b4c9bf89f5268b8632d15b71493.tar.bz2
rockbox-7d11b7ac03048b4c9bf89f5268b8632d15b71493.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usbstack/usb_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index e6a45e613a..4ca4366e79 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -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
}