mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
V25B: Small Bugfix
This commit is contained in:
parent
797c478d21
commit
abf99f9e1f
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user