From ffe1a2f830778291705d57fa7d51d0c1987174f8 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Thu, 2 Jan 2025 12:20:18 -0300 Subject: [PATCH] gmt correction for 15 min --- include/configuration.h | 3 +-- src/configuration.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/configuration.h b/include/configuration.h index 41aba67..4e00a54 100644 --- a/include/configuration.h +++ b/include/configuration.h @@ -119,11 +119,10 @@ class WEBADMIN { class NTP { public: - int gmtCorrection; + float gmtCorrection; }; - class Configuration { public: String callsign; diff --git a/src/configuration.cpp b/src/configuration.cpp index de6b08e..1aefb0a 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -211,7 +211,7 @@ bool Configuration::readFile() { webadmin.username = data["webadmin"]["username"] | "admin"; webadmin.password = data["webadmin"]["password"] | ""; - ntp.gmtCorrection = data["ntp"]["gmtCorrection"] | 0; + ntp.gmtCorrection = data["ntp"]["gmtCorrection"] | 0.0; lowPowerMode = data["other"]["lowPowerMode"] | false; lowVoltageCutOff = data["other"]["lowVoltageCutOff"] | 0; @@ -337,7 +337,7 @@ void Configuration::init() { webadmin.username = "admin"; webadmin.password = ""; - ntp.gmtCorrection = 0; + ntp.gmtCorrection = 0.0; Serial.println("All is Written!"); }