This commit is contained in:
hathach 2020-11-08 12:40:20 +07:00
parent ef99d37c97
commit 1b1e205a30
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#if CFG_TUD_MSC
// whether host does safe-eject
static bool ejected = false;
// Some MCU doesn't have enough 8KB SRAM to store the whole disk
@ -139,7 +140,7 @@ bool tud_msc_test_unit_ready_cb(uint8_t lun)
{
(void) lun;
// RAM disk is ready until is not ejected
// RAM disk is ready until ejected
if (ejected) {
tud_msc_set_sense(lun, SCSI_SENSE_NOT_READY, 0x3a, 0x00);
return false;