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