mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-23 21:19:16 +01:00
Print first 40 bytes if flashrom is unknown
This commit is contained in:
parent
21ac032fb9
commit
6a830e651d
@ -4,7 +4,7 @@
|
||||
This project represents a community-driven effort to provide
|
||||
an easy to build and easy to modify cartridge dumper.
|
||||
|
||||
Date: 29.11.2021
|
||||
Date: 13.01.2022
|
||||
Version: 7.3
|
||||
|
||||
SD lib: https://github.com/greiman/SdFat
|
||||
|
@ -580,7 +580,21 @@ idtheflash:
|
||||
print_Msg(F("ID Type 2: "));
|
||||
println_Msg(flashid);
|
||||
println_Msg(" ");
|
||||
print_Error(F("UNKNOWN FLASHROM"), true);
|
||||
println_Msg(F("UNKNOWN FLASHROM"));
|
||||
println_Msg(" ");
|
||||
println_Msg(F("Press Button..."));
|
||||
display_Update();
|
||||
wait();
|
||||
|
||||
// print first 40 bytes of flash
|
||||
display_Clear();
|
||||
println_Msg(F("First 40 bytes:"));
|
||||
println_Msg(F(""));
|
||||
printFlash(40);
|
||||
println_Msg(F(""));
|
||||
display_Update();
|
||||
resetFlash8();
|
||||
print_Error(F("Press Button to reset"), true);
|
||||
}
|
||||
println_Msg(" ");
|
||||
println_Msg(F("Press Button..."));
|
||||
|
@ -1,11 +1,19 @@
|
||||
//******************************************
|
||||
// CHOOSE HARDWARE VERSION
|
||||
// !!! CHOOSE HARDWARE VERSION !!!
|
||||
//******************************************
|
||||
#define HW4
|
||||
// Remove // in front of the line with your hardware version
|
||||
//#define HW4
|
||||
//#define HW3
|
||||
//#define HW2
|
||||
//#define HW1
|
||||
//#define SERIAL_MONITOR
|
||||
//******************************************
|
||||
// !!! CHOOSE HARDWARE VERSION !!!
|
||||
//******************************************
|
||||
|
||||
#if !(defined(HW1) || defined(HW2) || defined(HW3) || defined(HW4) || defined(SERIAL_MONITOR))
|
||||
# error !!! PLEASE CHOOSE HARDWARE VERSION IN OPTIONS.H !!!
|
||||
#endif
|
||||
|
||||
#if defined(HW4)
|
||||
#define enable_LCD
|
||||
|
Loading…
Reference in New Issue
Block a user