Permalink
Browse files

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

  • Loading branch information...
endrift committed Apr 30, 2018
1 parent 67a135e commit 82e620dfdc26267108ac331d679b3c68195a7367
Showing with 1 addition and 2 deletions.
  1. +1 −0 CHANGES
  2. +0 −2 src/gba/hardware.c
View
@@ -30,6 +30,7 @@ Bugfixes:
- GB Timer: Minor accuracy improvements
- GB Audio: Clock frame events on DIV
- 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:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
View
@@ -167,15 +167,13 @@ void _rtcReadPins(struct GBACartridgeHardware* hw) {
if ((hw->pinState & 5) == 1) {
hw->rtc.transferStep = 1;
}
- _outputPins(hw, 1);
break;
case 1:
if ((hw->pinState & 5) == 5) {
hw->rtc.transferStep = 2;
} else {
hw->rtc.transferStep = 0;
}
- _outputPins(hw, 5);
break;
case 2:
if (!(hw->pinState & 1)) {

0 comments on commit 82e620d

Please sign in to comment.