Dont consider LUN in filename as it wont work, just force to 0

This commit is contained in:
Eric Helgeson 2021-12-15 10:59:58 -06:00
parent 3e616f6a38
commit ab646260a0
1 changed files with 0 additions and 7 deletions

View File

@ -488,14 +488,7 @@ void setup()
usedDefaultId++;
}
}
if(file_name_length > 3) { // HD0[N]
int tmp_lun = name[HDIMG_LUN_POS] - '0';
if(tmp_lun != 0) {
LOG_FILE.println("!! Only 0 is supported for LUN, forcing to 0 !!");
LOG_FILE.sync();
}
}
int blk1, blk2, blk3, blk4 = 0;
if(file_name_length > 8) { // HD00_[111]
blk1 = name[HDIMG_BLK_POS] - '0';