From fb3a266c865999d7968e48c1c8285e81129cba7e Mon Sep 17 00:00:00 2001 From: Troy Date: Wed, 12 Oct 2022 21:08:47 -0400 Subject: [PATCH 1/2] Report error for READ_DVD_STRUCTURE fixes issues with drivers getting confused about the optical image file --- src/BlueSCSI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index 9097abf..cb91f43 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -1999,7 +1999,7 @@ static byte onReadDiscInformation(SCSI_DEVICE *dev, const byte *cdb) static byte onReadDVDStructure(SCSI_DEVICE *dev, const byte *cdb) { dev->m_senseKey = SCSI_SENSE_ILLEGAL_REQUEST; - dev->m_additional_sense_code = SCSI_ASC_CANNOT_READ_MEDIUM_INCOMPATIBLE_FORMAT; + dev->m_additional_sense_code = SCSI_ASC_INVALID_OPERATION_CODE; return SCSI_STATUS_CHECK_CONDITION; } From 847456203f9807adfbad00ffd2566cd18e290627 Mon Sep 17 00:00:00 2001 From: Troy Date: Wed, 12 Oct 2022 21:15:18 -0400 Subject: [PATCH 2/2] Cleaned up SDfs logging --- src/BlueSCSI.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index cb91f43..16c064c 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -663,12 +663,8 @@ void initFileLog(int success_mhz) { case FAT_TYPE_EXFAT: LOG_FILE.println("exFAT"); break; - case FAT_TYPE_FAT32: - LOG_FILE.print("FAT32"); - case FAT_TYPE_FAT16: - LOG_FILE.print("FAT16"); default: - LOG_FILE.println(" - Consider formatting the SD Card with exFAT for improved performance."); + LOG_FILE.print("FAT 32/16/12 - Consider formatting the SD Card with exFAT for improved performance."); } LOG_FILE.print("SPI speed: "); LOG_FILE.print(success_mhz);