mirror of https://github.com/mgba-emu/mgba.git
GBA Hardware: Fix RTC overriding light sensor (fixes #1069)
This commit is contained in:
parent
67a135e5e7
commit
82e620dfdc
1
CHANGES
1
CHANGES
|
@ -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)
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue