mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 14:42:58 +00:00
clean up
This commit is contained in:
parent
ef99d37c97
commit
1b1e205a30
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#if CFG_TUD_MSC
|
#if CFG_TUD_MSC
|
||||||
|
|
||||||
|
// whether host does safe-eject
|
||||||
static bool ejected = false;
|
static bool ejected = false;
|
||||||
|
|
||||||
// Some MCU doesn't have enough 8KB SRAM to store the whole disk
|
// 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;
|
(void) lun;
|
||||||
|
|
||||||
// RAM disk is ready until is not ejected
|
// RAM disk is ready until ejected
|
||||||
if (ejected) {
|
if (ejected) {
|
||||||
tud_msc_set_sense(lun, SCSI_SENSE_NOT_READY, 0x3a, 0x00);
|
tud_msc_set_sense(lun, SCSI_SENSE_NOT_READY, 0x3a, 0x00);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user