🪵 Removes serial logging
This commit is contained in:
@@ -49,17 +49,11 @@ void NTPSettingsService::begin()
|
||||
|
||||
void NTPSettingsService::onStationModeGotIP(WiFiEvent_t event, WiFiEventInfo_t info)
|
||||
{
|
||||
#ifdef SERIAL_INFO
|
||||
Serial.println(F("Got IP address, starting NTP Synchronization"));
|
||||
#endif
|
||||
configureNTP();
|
||||
}
|
||||
|
||||
void NTPSettingsService::onStationModeDisconnected(WiFiEvent_t event, WiFiEventInfo_t info)
|
||||
{
|
||||
#ifdef SERIAL_INFO
|
||||
Serial.println(F("WiFi connection dropped, stopping NTP."));
|
||||
#endif
|
||||
configureNTP();
|
||||
}
|
||||
|
||||
@@ -67,9 +61,6 @@ void NTPSettingsService::configureNTP()
|
||||
{
|
||||
if (WiFi.isConnected() && _state.enabled)
|
||||
{
|
||||
#ifdef SERIAL_INFO
|
||||
Serial.println(F("Starting NTP..."));
|
||||
#endif
|
||||
configTzTime(_state.tzFormat.c_str(), _state.server.c_str());
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user