diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index e7d7f84..47cdb04 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -3,7 +3,7 @@ Author: sanni Date: 2017-05-15 - Version: V24C + Version: V24D 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] = "V24C"; +char ver[5] = "V24D"; /****************************************** Define Output diff --git a/Cart_Reader/GB.ino b/Cart_Reader/GB.ino index 2fa2ac9..91fabf5 100644 --- a/Cart_Reader/GB.ino +++ b/Cart_Reader/GB.ino @@ -335,7 +335,7 @@ void getCartInfo_GB() { for (int addr = 0x0134; addr <= 0x13C; addr++) { myByte = readByte_GB(addr); - if (((char(myByte) >= 48 && char(myByte) <= 57) || (char(myByte) >= 65 && char(myByte) <= 122)) && myLength < 16) { + if (((char(myByte) >= 48 && char(myByte) <= 57) || (char(myByte) >= 65 && char(myByte) <= 122)) && myLength < 15) { romName[myLength] = char(myByte); myLength++; } diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino index ac30bf4..019881c 100644 --- a/Cart_Reader/GBA.ino +++ b/Cart_Reader/GBA.ino @@ -737,7 +737,7 @@ void getCartInfo_GBA() { byte myLength = 0; for (int addr = 0xA0; addr <= 0xAB; addr++) { myByte = sdBuffer[addr]; - if (((char(myByte) >= 48 && char(myByte) <= 57) || (char(myByte) >= 65 && char(myByte) <= 122)) && myLength < 16) { + if (((char(myByte) >= 48 && char(myByte) <= 57) || (char(myByte) >= 65 && char(myByte) <= 122)) && myLength < 15) { romName[myLength] = char(myByte); myLength++; } diff --git a/Cart_Reader/N64.ino b/Cart_Reader/N64.ino index f11b9ed..73d9a07 100644 --- a/Cart_Reader/N64.ino +++ b/Cart_Reader/N64.ino @@ -1203,7 +1203,7 @@ void idCart() { // Get name byte myLength = 0; for (unsigned int i = 0; i < 20; i++) { - if (((char(sdBuffer[0x20 + i]) >= 48 && char(sdBuffer[0x20 + i]) <= 57) || (char(sdBuffer[0x20 + i]) >= 65 && char(sdBuffer[0x20 + i]) <= 122)) && myLength < 16) { + if (((char(sdBuffer[0x20 + i]) >= 48 && char(sdBuffer[0x20 + i]) <= 57) || (char(sdBuffer[0x20 + i]) >= 65 && char(sdBuffer[0x20 + i]) <= 122)) && myLength < 15) { romName[myLength] = char(sdBuffer[0x20 + i]); myLength++; }