Fork of the USBHost library by mbed.
Dependencies: FATFileSystem mbed-rtos
Fork of USBHost by
Diff: USBHostMSD/USBHostMSD.cpp
- Revision:
- 13:b58a2204422f
- Parent:
- 8:93da8ea2708b
- Child:
- 24:868cbfe611a7
--- a/USBHostMSD/USBHostMSD.cpp Tue Aug 13 09:42:31 2013 +0000 +++ b/USBHostMSD/USBHostMSD.cpp Mon Sep 16 15:36:24 2013 +0100 @@ -154,7 +154,7 @@ int USBHostMSD::inquiry(uint8_t lun, uint8_t page_code) { USB_DBG("Inquiry"); uint8_t evpd = (page_code == 0) ? 0 : 1; - uint8_t cmd[6] = {0x12, (lun << 5) | evpd, page_code, 0, 36, 0}; + uint8_t cmd[6] = {0x12, uint8_t((lun << 5) | evpd), page_code, 0, 36, 0}; uint8_t result[36]; int status = SCSITransfer(cmd, 6, DEVICE_TO_HOST, result, 36); if (status == 0) {