Increase SNTP setup priority (#4917)

This commit is contained in:
Simone Rossetto 2023-06-07 00:38:18 +02:00 committed by GitHub
parent 6b00622329
commit d1253922c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ class SNTPComponent : public time::RealTimeClock {
this->server_2_ = server_2;
this->server_3_ = server_3;
}
float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
float get_setup_priority() const override { return setup_priority::BEFORE_CONNECTION; }
void update() override;
void loop() override;