Update 7800.ino

Update checkStatus_7800() to account for the added Bankset mapper (#7).
This commit is contained in:
sakman55 2024-04-27 18:33:27 -10:00 committed by GitHub
parent 9f51bb1af7
commit 254c824292
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -613,7 +613,7 @@ setrom:
void checkStatus_7800() { void checkStatus_7800() {
EEPROM_readAnything(7, a7800mapper); EEPROM_readAnything(7, a7800mapper);
EEPROM_readAnything(8, a7800size); EEPROM_readAnything(8, a7800size);
if (a7800mapper > 6) { if (a7800mapper > 7) {
a7800mapper = 0; // default a7800mapper = 0; // default
EEPROM_writeAnything(7, a7800mapper); EEPROM_writeAnything(7, a7800mapper);
} }
@ -862,4 +862,4 @@ void setCart_7800() {
print_FatalError(F("Database file not found")); print_FatalError(F("Database file not found"));
} }
} }
#endif #endif