Skip to content

Commit ccb6471

Browse files
author
aquanull
committed
Fixed RTC weekday for GBA_CORE_V7.
1 parent 57a3671 commit ccb6471

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/gba/RTC.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ bool rtcWrite(u32 address, u16 value)
140140
rtcClockData.data[0] = toBCD(newtime->tm_year);
141141
rtcClockData.data[1] = toBCD(newtime->tm_mon + 1);
142142
rtcClockData.data[2] = toBCD(newtime->tm_mday);
143-
#ifdef USE_GBA_CORE_V7
144-
rtcClockData.data[3] = 0;
145-
#else
146143
rtcClockData.data[3] = toBCD(newtime->tm_wday);
147-
#endif
148144
rtcClockData.data[4] = toBCD(newtime->tm_hour);
149145
rtcClockData.data[5] = toBCD(newtime->tm_min);
150146
rtcClockData.data[6] = toBCD(newtime->tm_sec);

0 commit comments

Comments
 (0)