Browse Source

NTP finally working

Aareschluchtje 9 năm trước cách đây
mục cha
commit
814357f434
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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");