cleaned things up and added a log message

This commit is contained in:
Troy 2022-11-30 21:42:38 -05:00
parent dba1860856
commit 0ae77a7b48

View File

@ -488,6 +488,12 @@ void setup()
//HD image file open
scsi_id_mask = 0x00;
// Look for this file to enable MSTE_MODE
if(SD.exists("MSTE_MODE")) {
LOG_FILE.println("MSTE_MODE - IDs treated as LUNs");
megaste_mode = true;
}
// Iterate over the root path in the SD card looking for candidate image files.
FsFile root;
@ -552,13 +558,6 @@ void findDriveImages(FsFile root) {
break;
}
// Look for this file to enable MSTE_MODE
// hacky until a better ini file parsing exists
if(strncmp(name, "MSTE_MODE", 9) == 0) {
megaste_mode = true;
continue;
}
// Valid file, open for reading/writing.
file = new FsFile(SD.open(name, O_RDWR));
if(file && file->isFile()) {