diff options
author | sanni <[email protected]> | 2022-06-23 10:47:30 +0200 |
---|---|---|
committer | sanni <[email protected]> | 2022-06-23 10:47:30 +0200 |
commit | d8d9716aa36e9516d9a49a63be8569d47e7a55dc (patch) | |
tree | 5d5b82b1638d41d1810ff3540755a2fbc7e7dad7 /Cart_Reader/GBA.ino | |
parent | b3ac026495f3ee2cc23f5cdcbc9046549c9ccc64 (diff) | |
download | cartreader-d8d9716aa36e9516d9a49a63be8569d47e7a55dc.tar.gz cartreader-d8d9716aa36e9516d9a49a63be8569d47e7a55dc.zip |
Add files via uplpad
Diffstat (limited to 'Cart_Reader/GBA.ino')
-rw-r--r-- | Cart_Reader/GBA.ino | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino index c99f622..afa84c2 100644 --- a/Cart_Reader/GBA.ino +++ b/Cart_Reader/GBA.ino @@ -498,9 +498,6 @@ void setup_GBA() { setROM_GBA();
// Get cart info
- display_Clear();
- println_Msg(F("Searching database..."));
- display_Update();
getCartInfo_GBA();
display_Clear();
@@ -767,6 +764,7 @@ void getCartInfo_GBA() { }
if (logoChecksum != 0x4B1B) {
+ display_Clear();
print_Error(F("CARTRIDGE ERROR"), false);
strcpy(romName, "ERROR");
println_Msg(F(""));
@@ -792,6 +790,10 @@ void getCartInfo_GBA() { cartID[2] = char(sdBuffer[0xAE]);
cartID[3] = char(sdBuffer[0xAF]);
+ display_Clear();
+ println_Msg(F("Searching database..."));
+ display_Update();
+
if (myFile.open("gba.txt", O_READ)) {
// Loop through file
while (myFile.available()) {
|