mirror of
https://github.com/esphome/esphome.git
synced 2025-06-16 07:16:58 +02:00
one more
This commit is contained in:
parent
4f29039b41
commit
183dd74f3e
@ -12,6 +12,8 @@ class IntervalSyncer : public Component {
|
||||
void setup() override {
|
||||
if (this->write_interval_ != 0) {
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user