From bf90513edca685f4cbc43214f394d7150106ccf9 Mon Sep 17 00:00:00 2001 From: sanni Date: Fri, 2 Aug 2024 10:43:11 +0200 Subject: [PATCH] Enable Internal Pull-ups for MD https://github.com/sanni/cartreader/issues/1007 --- Cart_Reader/Cart_Reader.ino | 4 ++-- Cart_Reader/MD.ino | 3 +++ Cart_Reader/OSCR.cpp | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index 396f017..43c2c43 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -4,8 +4,8 @@ This project represents a community-driven effort to provide an easy to build and easy to modify cartridge dumper. - Date: 2024-07-08 - Version: 14.0 + Date: 2024-08-02 + Version: 14.1 SD lib: https://github.com/greiman/SdFat LCD lib: https://github.com/olikraus/u8g2 diff --git a/Cart_Reader/MD.ino b/Cart_Reader/MD.ino index ef8ed58..9d229f1 100644 --- a/Cart_Reader/MD.ino +++ b/Cart_Reader/MD.ino @@ -697,6 +697,9 @@ void dataOut_MD() { void dataIn_MD() { DDRC = 0x00; DDRA = 0x00; + // Enable Internal Pullups (needed for games like Batman Forever that are open bus with random bytes on the last 1MB, so we get a clean 0xFF padding) + PORTC = 0xFF; + PORTA = 0xFF; } /****************************************** diff --git a/Cart_Reader/OSCR.cpp b/Cart_Reader/OSCR.cpp index dbbbd4c..88b50fb 100644 --- a/Cart_Reader/OSCR.cpp +++ b/Cart_Reader/OSCR.cpp @@ -49,7 +49,7 @@ * String Constants **/ // Firmware Version -constexpr char PROGMEM FSTRING_VERSION[] = "V14.0"; +constexpr char PROGMEM FSTRING_VERSION[] = "V14.1"; // Universal constexpr char PROGMEM FSTRING_RESET[] = "Reset";