Allow for flash ID error to be ignored

This commit is contained in:
sanni 2024-07-31 12:07:44 +02:00
parent 487ea97e7a
commit 324de5463b
2 changed files with 7 additions and 5 deletions

View File

@ -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);

View File

@ -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();
}