mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Removes write errors
This commit is contained in:
parent
80ff348b03
commit
3e18f4f28c
@ -1118,6 +1118,7 @@ bool writeFlash_GB() {
|
|||||||
|
|
||||||
// Switch CS(PH3) and OE/RD(PH6) to HIGH
|
// Switch CS(PH3) and OE/RD(PH6) to HIGH
|
||||||
PORTH |= (1 << 3) | (1 << 6);
|
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
|
// Set data pins to output
|
||||||
dataOut();
|
dataOut();
|
||||||
|
Loading…
Reference in New Issue
Block a user