diff options
author | Ancyker <[email protected]> | 2023-09-14 12:00:58 -0400 |
---|---|---|
committer | Ancyker <[email protected]> | 2023-09-14 12:00:58 -0400 |
commit | 74fba5e29da53839d2df40c003eeae0e51c5bbe3 (patch) | |
tree | 97d22bb038fcdb5173b82db81219c0f5a541d14a | |
parent | 4f8ef61355dea70b2bab1591b4cb403592ce5ac4 (diff) | |
download | cartreader-74fba5e29da53839d2df40c003eeae0e51c5bbe3.tar.gz cartreader-74fba5e29da53839d2df40c003eeae0e51c5bbe3.zip |
N64.ino: Handle reused global from FLASH.ino
-rw-r--r-- | Cart_Reader/N64.ino | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Cart_Reader/N64.ino b/Cart_Reader/N64.ino index ca57923..2aac5bd 100644 --- a/Cart_Reader/N64.ino +++ b/Cart_Reader/N64.ino @@ -44,6 +44,10 @@ String CRC1 = ""; String CRC2 = "";
#endif
+#if !defined(enable_FLASH)
+unsigned long flashSize;
+#endif
+
static const char N64_EEP_FILENAME_FMT[] PROGMEM = "%s.eep";
static const char N64_SAVE_DIRNAME_FMT[] PROGMEM = "N64/SAVE/%s/%d";
@@ -4181,15 +4185,15 @@ void idGameshark_N64() { } else if (flashid == 0x0404) {
//Set SST 28LF040 flashrom size
flashSize = 1048574;
- } else {
- println_Msg(F("Check cart connection"));
- println_Msg(F("Unknown Flash ID"));
- sprintf(flashid_str, "%04X", flashid);
- print_STR(press_button_STR, 1);
- display_Update();
- wait();
- mainMenu();
- }
+ } else {
+ println_Msg(F("Check cart connection"));
+ println_Msg(F("Unknown Flash ID"));
+ sprintf(flashid_str, "%04X", flashid);
+ print_STR(press_button_STR, 1);
+ display_Update();
+ wait();
+ mainMenu();
+ }
sprintf(flashid_str, "%04X", flashid);
// Reset flashrom
resetGameshark_N64();
|