diff --git a/sketches/doorbell-touch-esp32-32e/DoorbellLogic.h b/sketches/doorbell-touch-esp32-32e/DoorbellLogic.h index 4f5c0b4..26369bb 100644 --- a/sketches/doorbell-touch-esp32-32e/DoorbellLogic.h +++ b/sketches/doorbell-touch-esp32-32e/DoorbellLogic.h @@ -54,9 +54,9 @@ private: String _pendStatusState; String _pendStatusMsg; - // NTP + // NTP — pointer because NTPClient has no default constructor WiFiUDP _ntpUDP; - NTPClient _timeClient = nullptr; + NTPClient* _timeClient = nullptr; bool _ntpSynced = false; time_t _lastEpoch = 0;