Skip to content

Commit

Permalink
Update FLASH.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
sanni committed Aug 9, 2024
1 parent 952d942 commit 2d51bac
Showing 1 changed file with 31 additions and 26 deletions.
57 changes: 31 additions & 26 deletions Cart_Reader/FLASH.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;

case 2:
println_Msg(F("A[B]CD"));
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 4:
println_Msg(F("AB[C]D"));
break;
switch (myFile.curPosition() / 1024 / 1024UL) {
case 0:
println_Msg(F("[A]BCD"));
break;

case 6:
println_Msg(F("ABC[D]"));
break;
case 2:
println_Msg(F("A[B]CD"));
break;

default:
println_Msg(FS(FSTRING_SPACE));
break;
}
case 4:
println_Msg(F("AB[C]D"));
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
Expand Down

0 comments on commit 2d51bac

Please sign in to comment.