From 3e18f4f28cd770243257006898ae6fd9925863af Mon Sep 17 00:00:00 2001 From: Dakkaron Date: Thu, 22 Jul 2021 15:16:38 +0200 Subject: [PATCH] Removes write errors --- Cart_Reader/GB.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/Cart_Reader/GB.ino b/Cart_Reader/GB.ino index 8266a9b..d7a703a 100644 --- a/Cart_Reader/GB.ino +++ b/Cart_Reader/GB.ino @@ -1118,6 +1118,7 @@ bool writeFlash_GB() { // Switch CS(PH3) and OE/RD(PH6) to HIGH PORTH |= (1 << 3) | (1 << 6); + __asm__("nop\n\tnop\n\tnop\n\t"); // Waste a few CPU cycles to remove write errors // Set data pins to output dataOut();