Skip to content

Commit

Permalink
NTP fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jun 19, 2017
1 parent c9d089e commit 8592400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eez_psu_sketch/ntp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const char *getNtpServer() {
return g_ntpServerToTest;
}
} else {
if (persist_conf::isNtpEnabled() && persist_conf::devConf2.ntpServer[0]) {
if (persist_conf::devConf2.ntpServer[0]) {
return persist_conf::devConf2.ntpServer;
}
}
Expand Down Expand Up @@ -175,7 +175,7 @@ void begin() {
}

void init() {
if (ethernet::g_testResult == TEST_OK && persist_conf::isNtpEnabled() && persist_conf::devConf2.ntpServer[0]) {
if (ethernet::g_testResult == TEST_OK && persist_conf::isNtpEnabled()) {
begin();
}
}
Expand All @@ -194,7 +194,7 @@ void setState(State state) {
}

void tick(uint32_t tickCount) {
if (ethernet::g_testResult == TEST_OK) {
if (ethernet::g_testResult == TEST_OK && persist_conf::isNtpEnabled()) {
if (g_state == STOPPED) {
begin();
}
Expand Down

0 comments on commit 8592400

Please sign in to comment.