Skip to content

Commit

Permalink
Change NTP loops to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Apr 4, 2020
1 parent 377ef70 commit a77c84f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bubbles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ void Bubbles::update() { // Regular update loop, once per minute
// Store last values
lastBpm = getRawBpm();
DVER("got Raw BPM");
lastAmb = getTemp(AMBSENSOR);
//lastAmb = getTemp(AMBSENSOR);
DVER("got Ambient");
lastVes = getTemp(VESSENSOR);
//lastVes = getTemp(VESSENSOR);
DVER("got Vessel");

// Push values to circular buffers
Expand Down
2 changes: 1 addition & 1 deletion src/ntp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void setClock() {
int cycle = 0;
while (nowSecs < EPOCH_1_1_2019) {
if (nowSecs - startSecs > 9) {
if (cycle > 10) {
if (cycle > 9) {
Log.warning(F("Unable to get time hack from %s, rebooting." CR), TIMESERVER);
ESP.restart();
}
Expand Down
2 changes: 1 addition & 1 deletion src/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void doWiFi(bool ignore = false) { // Handle WiFi and optionally ignore current
myAsyncWifiManager.setMenu(_wfmPortalMenu); // Set menu items
myAsyncWifiManager.setClass(F("invert")); // Set dark theme

myAsyncWifiManager.setCountry(WIFI_COUNTRY); // Setting wifi country seems to improve OSX soft ap connectivity
myAsyncWifiManager.setCountry(WIFI_COUNTRY); // Setting wifi country seems to improve OSX soft ap connectivity
myAsyncWifiManager.setWiFiAPChannel(WIFI_CHAN); // Set WiFi channel

myAsyncWifiManager.setShowStaticFields(true); // force show static ip fields
Expand Down

0 comments on commit a77c84f

Please sign in to comment.