summaryrefslogtreecommitdiff
path: root/src/rtc_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtc_util.c')
-rw-r--r--src/rtc_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtc_util.c b/src/rtc_util.c
index 940b1fea9..876d4ab24 100644
--- a/src/rtc_util.c
+++ b/src/rtc_util.c
@@ -3,7 +3,7 @@
#include "rtc_util.h"
#include "string_util.h"
-extern const struct SiiRtcInfo gDefaultRtcInfo;
+extern const struct SiiRtcInfo gRtcDummy;
extern const s32 gNumDaysInMonths[];
extern u16 gRtcErrorStatus;
@@ -133,8 +133,8 @@ u16 RtcGetErrorStatus()
void RtcGetInfo(struct SiiRtcInfo *rtc)
{
- if (gRtcErrorStatus & RTC_ERROR_FLAGS)
- *rtc = gDefaultRtcInfo;
+ if (gRtcErrorStatus & RTC_ERR_FLAG_MASK)
+ *rtc = gRtcDummy;
else
RtcGetRawInfo(rtc);
}