mirror of
https://github.com/erichelgeson/BlueSCSI.git
synced 2024-10-31 18:04:27 +00:00
cleaned things up and added a log message
This commit is contained in:
parent
dba1860856
commit
0ae77a7b48
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user