diff options
| author | Damien George | 2017-12-13 18:33:39 +1100 |
|---|---|---|
| committer | Damien George | 2017-12-13 18:33:39 +1100 |
| commit | 3f6d3ccc11866ea6f84fa43fb50ac9fe5a171fe8 (patch) | |
| tree | 1a43ead9fa1669fec838f62a214e6e8389c341f8 | |
| parent | 8462f167dcc7accb0b4329ce2ea57d4c400b29ee (diff) | |
stm32/usbdev: Pass thru correct val for SCSI PreventAllowMediumRemoval.
This value is "1" when the medium should not be removed, "0" otherwise.
| -rw-r--r-- | ports/stm32/usbdev/class/src/usbd_msc_scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/usbdev/class/src/usbd_msc_scsi.c b/ports/stm32/usbdev/class/src/usbd_msc_scsi.c index 50cd5b971..b5363e2d4 100644 --- a/ports/stm32/usbdev/class/src/usbd_msc_scsi.c +++ b/ports/stm32/usbdev/class/src/usbd_msc_scsi.c @@ -481,7 +481,7 @@ static int8_t SCSI_AllowMediumRemoval(USBD_HandleTypeDef *pdev, uint8_t lun, ui {
USBD_MSC_BOT_HandleTypeDef *hmsc = &((usbd_cdc_msc_hid_state_t*)pdev->pClassData)->MSC_BOT_ClassData;
hmsc->bot_data_length = 0;
- hmsc->bdev_ops->PreventAllowMediumRemoval(lun, params[0]);
+ hmsc->bdev_ops->PreventAllowMediumRemoval(lun, params[4]);
return 0;
}
|
