V24C: Accidentely made SNES name one char too long

This commit is contained in:
sanni 2017-05-15 10:19:13 +02:00 committed by GitHub
parent 326d37cebd
commit d8b888d5a6
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -565,7 +565,7 @@ boolean checkcart_SNES() {
byte myLength = 0; byte myLength = 0;
for (unsigned int i = 65472; i < 65492; i++) { for (unsigned int i = 65472; i < 65492; i++) {
myByte = readBank_SNES(0, i); myByte = readBank_SNES(0, i);
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); romName[myLength] = char(myByte);
myLength++; myLength++;
} }