summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_storage.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-03-18 10:16:27 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-03-18 10:16:27 +0000
commit455fabfcb8a03c9e000393868011b23a0209576d (patch)
tree94601ffbadfbcafff8a869e4682a162892a580e5 /firmware/usbstack/usb_storage.c
parent6e209443c52bb02d25d1a3f3b76a071a961a7563 (diff)
fix SCSI_FORMAT_CAPACITY_FORMATTED_MEDIA flag endianness. Thanks to Martin Ritter for spotting this
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16694 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-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 9488f8aecc..8de0f418dc 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -812,7 +812,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
tb.format_capacity_data->block_size =
htobe32(block_size*block_size_mult);
tb.format_capacity_data->block_size |=
- SCSI_FORMAT_CAPACITY_FORMATTED_MEDIA;
+ htobe32(SCSI_FORMAT_CAPACITY_FORMATTED_MEDIA);
send_command_result(tb.format_capacity_data,
MIN(sizeof(struct format_capacity), length));