mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-15 09:25:06 +01:00
Update FLASH.ino
This commit is contained in:
parent
e19633536c
commit
952d942a64
@ -2965,13 +2965,40 @@ void writeCFI_Flash(byte currChip, byte totalChips, boolean reversed) {
|
|||||||
statusReg = readByte_Flash(0);
|
statusReg = readByte_Flash(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adjust filesize to fit flashchip
|
||||||
|
adjustFileSize(currChip, totalChips, reversed);
|
||||||
|
|
||||||
print_Msg(F("Writing flash"));
|
print_Msg(F("Writing flash"));
|
||||||
print_Msg(FS(FSTRING_SPACE));
|
print_Msg(FS(FSTRING_SPACE));
|
||||||
print_Msg(currChip);
|
print_Msg(currChip);
|
||||||
print_Msg(F("/"));
|
print_Msg(F("/"));
|
||||||
println_Msg(totalChips);
|
print_Msg(totalChips);
|
||||||
// Adjust filesize to fit flashchip
|
print_Msg(FS(FSTRING_SPACE));
|
||||||
adjustFileSize(currChip, totalChips, reversed);
|
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;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
println_Msg(F("AB[C]D"));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
println_Msg(F("ABC[D]"));
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
println_Msg(FS(FSTRING_SPACE));
|
||||||
|
break;
|
||||||
|
}
|
||||||
display_Update();
|
display_Update();
|
||||||
|
|
||||||
//Initialize progress bar
|
//Initialize progress bar
|
||||||
|
Loading…
Reference in New Issue
Block a user