mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 09:42:19 +01:00
one more
This commit is contained in:
@@ -12,6 +12,8 @@ class IntervalSyncer : public Component {
|
|||||||
void setup() override {
|
void setup() override {
|
||||||
if (this->write_interval_ != 0) {
|
if (this->write_interval_ != 0) {
|
||||||
set_interval(this->write_interval_, []() { global_preferences->sync(); });
|
set_interval(this->write_interval_, []() { global_preferences->sync(); });
|
||||||
|
// When using interval-based syncing, we don't need the loop
|
||||||
|
this->mark_loop_done();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void loop() override {
|
void loop() override {
|
||||||
|
Reference in New Issue
Block a user