ntp: also zero field 0x30001

This commit is contained in:
TuxSH 2019-06-29 16:53:31 +02:00
parent 6ed93a1f09
commit 58a6a25eb3

View File

@ -166,8 +166,11 @@ Result ntpSetTimeDate(const struct tm *localt)
// First, set the config RTC offset to 0 // First, set the config RTC offset to 0
u8 rtcOff = 0; u8 rtcOff = 0;
u8 rtcOff2[8] = {0};
res = CFG_SetConfigInfoBlk4(1, 0x10000, &rtcOff); res = CFG_SetConfigInfoBlk4(1, 0x10000, &rtcOff);
if (R_FAILED(res)) goto cleanup; 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); u8 yr = (u8)(localt->tm_year - 100);
// Update the RTC // Update the RTC