mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-15 01:15:06 +01:00
Update FLASH.ino
This commit is contained in:
parent
952d942a64
commit
2d51bacdde
@ -2969,36 +2969,41 @@ void writeCFI_Flash(byte currChip, byte totalChips, boolean reversed) {
|
||||
adjustFileSize(currChip, totalChips, reversed);
|
||||
|
||||
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) {
|
||||
case 0:
|
||||
println_Msg(F("[A]BCD"));
|
||||
break;
|
||||
// For file offset indicator SNES repros with multiple chips
|
||||
if ((totalChips > 1) || reversed) {
|
||||
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));
|
||||
|
||||
case 2:
|
||||
println_Msg(F("A[B]CD"));
|
||||
break;
|
||||
switch (myFile.curPosition() / 1024 / 1024UL) {
|
||||
case 0:
|
||||
println_Msg(F("[A]BCD"));
|
||||
break;
|
||||
|
||||
case 4:
|
||||
println_Msg(F("AB[C]D"));
|
||||
break;
|
||||
case 2:
|
||||
println_Msg(F("A[B]CD"));
|
||||
break;
|
||||
|
||||
case 6:
|
||||
println_Msg(F("ABC[D]"));
|
||||
break;
|
||||
case 4:
|
||||
println_Msg(F("AB[C]D"));
|
||||
break;
|
||||
|
||||
default:
|
||||
println_Msg(FS(FSTRING_SPACE));
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
println_Msg(F("ABC[D]"));
|
||||
break;
|
||||
|
||||
default:
|
||||
println_Msg(FS(FSTRING_SPACE));
|
||||
break;
|
||||
}
|
||||
} else
|
||||
print_Msg(F("..."));
|
||||
display_Update();
|
||||
|
||||
//Initialize progress bar
|
||||
|
Loading…
Reference in New Issue
Block a user