Skip to content

Commit

Permalink
Allow for flash ID error to be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
sanni committed Jul 31, 2024
1 parent 487ea97 commit 324de54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Cart_Reader/Cart_Reader.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 2 additions & 5 deletions Cart_Reader/FLASH.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();

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

Expand Down

0 comments on commit 324de54

Please sign in to comment.