mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-15 01:15:06 +01:00
Allow for flash ID error to be ignored
This commit is contained in:
parent
487ea97e7a
commit
324de5463b
@ -2456,6 +2456,11 @@ void print_Error(byte errorMessage) {
|
||||
_print_Error();
|
||||
}
|
||||
|
||||
void print_Error(int errorMessage) {
|
||||
print_STR(errorMessage, 1);
|
||||
_print_Error();
|
||||
}
|
||||
|
||||
void _print_FatalError(void) {
|
||||
println_Msg(FS(FSTRING_EMPTY));
|
||||
print_STR(press_button_STR, 1);
|
||||
|
@ -620,7 +620,7 @@ idtheflash:
|
||||
println_Msg(F("UNKNOWN FLASHROM"));
|
||||
println_Msg("");
|
||||
// Prints string out of the common strings array either with or without newline
|
||||
print_STR(press_button_STR, 1);
|
||||
print_Error(press_button_STR);
|
||||
display_Update();
|
||||
wait();
|
||||
|
||||
@ -629,16 +629,13 @@ idtheflash:
|
||||
println_Msg(F("First 40 bytes:"));
|
||||
println_Msg(FS(FSTRING_EMPTY));
|
||||
printFlash(40);
|
||||
println_Msg(FS(FSTRING_EMPTY));
|
||||
display_Update();
|
||||
resetFlash8();
|
||||
print_FatalError(F("Press Button to reset"));
|
||||
}
|
||||
println_Msg("");
|
||||
println_Msg(FS(FSTRING_EMPTY));
|
||||
// Prints string out of the common strings array either with or without newline
|
||||
print_STR(press_button_STR, 1);
|
||||
display_Update();
|
||||
|
||||
resetFlash8();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user