mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 17:22:20 +01:00
small fix
This commit is contained in:
@@ -68,8 +68,11 @@ void SNTPComponent::loop() {
|
|||||||
this->time_sync_callback_.call();
|
this->time_sync_callback_.call();
|
||||||
this->has_time_ = true;
|
this->has_time_ = true;
|
||||||
|
|
||||||
|
#ifdef USE_ESP_IDF
|
||||||
|
// On ESP-IDF, time sync is permanent and update() doesn't force resync
|
||||||
// Time is now synchronized, no need to check anymore
|
// Time is now synchronized, no need to check anymore
|
||||||
this->mark_loop_done();
|
this->mark_loop_done();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace sntp
|
} // namespace sntp
|
||||||
|
Reference in New Issue
Block a user