Update FLASH.ino

This commit is contained in:
sanni 2024-08-09 12:09:24 +02:00
parent 952d942a64
commit 2d51bacdde

View File

@ -2969,36 +2969,41 @@ void writeCFI_Flash(byte currChip, byte totalChips, boolean reversed) {
adjustFileSize(currChip, totalChips, reversed); adjustFileSize(currChip, totalChips, reversed);
print_Msg(F("Writing flash")); print_Msg(F("Writing flash"));
print_Msg(FS(FSTRING_SPACE));
print_Msg(currChip);
print_Msg(F("/"));
print_Msg(totalChips);
print_Msg(FS(FSTRING_SPACE));
print_Msg(FS(FSTRING_SPACE));
print_Msg(FS(FSTRING_SPACE));
print_Msg(FS(FSTRING_SPACE));
switch (myFile.curPosition() / 1024 / 1024UL) { // For file offset indicator SNES repros with multiple chips
case 0: if ((totalChips > 1) || reversed) {
println_Msg(F("[A]BCD")); print_Msg(FS(FSTRING_SPACE));
break; print_Msg(currChip);
print_Msg(F("/"));
print_Msg(totalChips);
print_Msg(FS(FSTRING_SPACE));
print_Msg(FS(FSTRING_SPACE));
print_Msg(FS(FSTRING_SPACE));
print_Msg(FS(FSTRING_SPACE));
case 2: switch (myFile.curPosition() / 1024 / 1024UL) {
println_Msg(F("A[B]CD")); case 0:
break; println_Msg(F("[A]BCD"));
break;
case 4: case 2:
println_Msg(F("AB[C]D")); println_Msg(F("A[B]CD"));
break; break;
case 6: case 4:
println_Msg(F("ABC[D]")); println_Msg(F("AB[C]D"));
break; break;
default: case 6:
println_Msg(FS(FSTRING_SPACE)); println_Msg(F("ABC[D]"));
break; break;
}
default:
println_Msg(FS(FSTRING_SPACE));
break;
}
} else
print_Msg(F("..."));
display_Update(); display_Update();
//Initialize progress bar //Initialize progress bar