GBA Hardware: Fix RTC overriding light sensor (fixes #1069)

This commit is contained in:
Vicki Pfau 2018-04-29 20:18:45 -07:00
parent 67a135e5e7
commit 82e620dfdc
2 changed files with 1 additions and 2 deletions

View File

@ -30,6 +30,7 @@ Bugfixes:
- GB Timer: Minor accuracy improvements - GB Timer: Minor accuracy improvements
- GB Audio: Clock frame events on DIV - GB Audio: Clock frame events on DIV
- GBA Timer: Fix timers sometimes being late (fixes mgba.io/i/1012) - GBA Timer: Fix timers sometimes being late (fixes mgba.io/i/1012)
- GBA Hardware: Fix RTC overriding light sensor (fixes mgba.io/i/1069)
Misc: Misc:
- GBA Timer: Use global cycles for timers - GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722) - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)

View File

@ -167,7 +167,6 @@ void _rtcReadPins(struct GBACartridgeHardware* hw) {
if ((hw->pinState & 5) == 1) { if ((hw->pinState & 5) == 1) {
hw->rtc.transferStep = 1; hw->rtc.transferStep = 1;
} }
_outputPins(hw, 1);
break; break;
case 1: case 1:
if ((hw->pinState & 5) == 5) { if ((hw->pinState & 5) == 5) {
@ -175,7 +174,6 @@ void _rtcReadPins(struct GBACartridgeHardware* hw) {
} else { } else {
hw->rtc.transferStep = 0; hw->rtc.transferStep = 0;
} }
_outputPins(hw, 5);
break; break;
case 2: case 2:
if (!(hw->pinState & 1)) { if (!(hw->pinState & 1)) {