From 455fabfcb8a03c9e000393868011b23a0209576d Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Tue, 18 Mar 2008 10:16:27 +0000 Subject: 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 --- firmware/usbstack/usb_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/usbstack/usb_storage.c') 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)); -- cgit v1.2.3