diff options
| author | hathach <[email protected]> | 2018-03-31 14:09:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-31 14:09:48 +0700 |
| commit | 7a77aed8fa67cf6740943cf25a00485d4f288cfb (patch) | |
| tree | b2579f69d1bd263ceed4701193412df5da7ff6c3 /tinyusb/class/msc/msc_device.c | |
| parent | f1f7153b3b469d2565d5f5b5b8feb932ad219b98 (diff) | |
change usbd_control_xfer_st from function to macro to prevent compiler issue with substask
Diffstat (limited to 'tinyusb/class/msc/msc_device.c')
| -rw-r--r-- | tinyusb/class/msc/msc_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/class/msc/msc_device.c b/tinyusb/class/msc/msc_device.c index cbee1312e..3e9008a90 100644 --- a/tinyusb/class/msc/msc_device.c +++ b/tinyusb/class/msc/msc_device.c @@ -153,7 +153,7 @@ tusb_error_t mscd_control_request_st(uint8_t rhport, tusb_control_request_t cons {
// Note: lpc11/13u need xfer data's address to be aligned 64 -> make use of scsi_data instead of using max_lun directly
p_msc->scsi_data[0] = p_msc->max_lun;
- STASK_INVOKE( usbd_control_xfer_st(rhport, p_request->bmRequestType_bit.direction, p_msc->scsi_data, 1), err);
+ usbd_control_xfer_st(rhport, p_request->bmRequestType_bit.direction, p_msc->scsi_data, 1);
}else
{
dcd_control_stall(rhport); // stall unsupported request
|
