From 58a6a25eb36dfc69254169782248c5b6fa459e70 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 29 Jun 2019 16:53:31 +0200 Subject: [PATCH] ntp: also zero field 0x30001 --- sysmodules/rosalina/source/ntp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysmodules/rosalina/source/ntp.c b/sysmodules/rosalina/source/ntp.c index d19b0e8..49ed3a6 100644 --- a/sysmodules/rosalina/source/ntp.c +++ b/sysmodules/rosalina/source/ntp.c @@ -166,8 +166,11 @@ Result ntpSetTimeDate(const struct tm *localt) // First, set the config RTC offset to 0 u8 rtcOff = 0; + u8 rtcOff2[8] = {0}; res = CFG_SetConfigInfoBlk4(1, 0x10000, &rtcOff); if (R_FAILED(res)) goto cleanup; + res = CFG_SetConfigInfoBlk4(8, 0x30001, rtcOff2); + if (R_FAILED(res)) goto cleanup; u8 yr = (u8)(localt->tm_year - 100); // Update the RTC