Skip to content

Commit

Permalink
gmt correction for 15 min
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Jan 2, 2025
1 parent a0fdd78 commit ffe1a2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions include/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ class WEBADMIN {

class NTP {
public:
int gmtCorrection;
float gmtCorrection;
};



class Configuration {
public:
String callsign;
Expand Down
4 changes: 2 additions & 2 deletions src/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -337,7 +337,7 @@ void Configuration::init() {
webadmin.username = "admin";
webadmin.password = "";

ntp.gmtCorrection = 0;
ntp.gmtCorrection = 0.0;

Serial.println("All is Written!");
}
Expand Down

0 comments on commit ffe1a2f

Please sign in to comment.