stm32/usbdev: Pass thru correct val for SCSI PreventAllowMediumRemoval.

This value is "1" when the medium should not be removed, "0" otherwise.
pull/3489/head
Damien George 2017-12-13 18:33:39 +11:00
rodzic 8462f167dc
commit 3f6d3ccc11
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
}