V25B: Small Bugfix

This commit is contained in:
sanni 2017-06-04 16:36:16 +02:00 committed by GitHub
parent 797c478d21
commit abf99f9e1f
2 changed files with 13 additions and 3 deletions

View File

@ -2,8 +2,8 @@
Cartridge Reader for Arduino Mega2560
Author: sanni
Date: 2017-06-01
Version: V25A
Date: 2017-06-03
Version: V25B
SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
@ -34,7 +34,7 @@
YamaArashi - GBA flashrom bank switch command
**********************************************************************************/
char ver[5] = "V25A";
char ver[5] = "V25B";
/******************************************
Define Output

View File

@ -1745,6 +1745,12 @@ void send_GBM(byte myCommand) {
writeByte_GBM(0x013F, 0xA5);
break;
case 0x03:
//CMD_03h -> Undo write Step 2
writeByte_GBM(0x0120, 0x03);
writeByte_GBM(0x013F, 0xA5);
break;
case 0x04:
//CMD_04h -> Map entire flashrom (MBC4 mode)
writeByte_GBM(0x0120, 0x04);
@ -1790,6 +1796,10 @@ void send_GBM(byte myCommand) {
writeByte_GBM(0x0120, 0x11);
writeByte_GBM(0x013F, 0xA5);
break;
default:
print_Error(F("Unknown Command"), true);
break;
}
}