Explorar o código

NTP finally working

Aareschluchtje %!s(int64=9) %!d(string=hai) anos
pai
achega
814357f434
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      ntp.c

+ 2 - 1
ntp.c

@@ -119,7 +119,8 @@ bool NtpTimeIsValid(void){
 void NtpSync(void){
     /* Ophalen van pool.ntp.org */
     isSyncing = true;
-    TIME_ZONE = getTimeZone();
+    _timezone = -getTimeZone() * 3600;
+    printf(TIME_ZONE);
     NutDelay(100);
     //puts("Tijd ophalen van pool.ntp.org (213.154.229.24)");
     timeserver = inet_addr("213.154.229.24");