From 3143e7e1d049e879cd1b9571d99f18d49fd9bb8d Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Wed, 29 Apr 2020 20:18:02 +0100 Subject: [PATCH] ntp: stop overwriting rtc hwcal cfg backup --- sysmodules/rosalina/source/ntp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sysmodules/rosalina/source/ntp.c b/sysmodules/rosalina/source/ntp.c index e002f02..88ac87f 100644 --- a/sysmodules/rosalina/source/ntp.c +++ b/sysmodules/rosalina/source/ntp.c @@ -172,11 +172,8 @@ Result ntpSetTimeDate(const struct tm *localt) if (R_FAILED(res)) goto cleanup; // 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); + u8 rtcOff[8] = {0}; + res = CFG_SetConfigInfoBlk4(8, 0x30001, rtcOff); if (R_FAILED(res)) goto cleanup; u8 yr = (u8)(localt->tm_year - 100);