mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Report in progress only in reser state
This commit is contained in:
parent
dca2ec020e
commit
15264bce82
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ void SNTPComponent::loop() {
|
|||
this->has_time_ = true;
|
||||
}
|
||||
|
||||
bool SNTPComponent::is_in_progress() const { return sntp_get_sync_status() != SNTP_SYNC_STATUS_COMPLETED; }
|
||||
bool SNTPComponent::is_in_progress() const { return sntp_get_sync_status() == SNTP_SYNC_STATUS_RESET; }
|
||||
|
||||
} // namespace sntp
|
||||
} // namespace esphome
|
||||
|
|
Loading…
Reference in a new issue