Skip to content

Commit

Permalink
Adjust setup ntp location
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Apr 15, 2023
1 parent 83a2f0a commit f9bf035
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ESPGeiger/ESPGeiger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*************************************************************************/
#if !( defined(ESP8266) || defined(ESP32) )
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
#endif

#define DEFAULT_RX_TIMEOUT 30
#include <Arduino.h>
Expand Down Expand Up @@ -103,7 +106,6 @@ void setup()
delay(100);
cManager.startWebPortal();
arduino_ota_setup(hostName);
setupNTP();
mqtt.begin();
gcounter.begin();

Expand All @@ -112,6 +114,7 @@ void setup()
digitalWrite(LED_SEND_RECEIVE, (i%2)?LED_SEND_RECEIVE_ON:!LED_SEND_RECEIVE_ON);
delay(200);
}
setupNTP();
}

void loop()
Expand Down

0 comments on commit f9bf035

Please sign in to comment.