diff --git a/components/ratgdo/light/ratgdo_light_output.cpp b/components/ratgdo/light/ratgdo_light_output.cpp index 4034a5b..286e6ca 100644 --- a/components/ratgdo/light/ratgdo_light_output.cpp +++ b/components/ratgdo/light/ratgdo_light_output.cpp @@ -1,6 +1,6 @@ +#include "ratgdo_light_output.h" #include "../ratgdo_state.h" #include "esphome/core/log.h" -#include "ratgdo_light_output.h" namespace esphome { namespace ratgdo { diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 0d0242a..91eaa23 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -134,7 +134,7 @@ namespace ratgdo { this->input_obst_pin_->attach_interrupt(RATGDOStore::isrObstruction, &this->store_, gpio::INTERRUPT_ANY_EDGE); ESP_LOGD(TAG, "Syncing rolling code counter after reboot..."); - delay(60); // + delay(60); // sync(); // reboot/sync to the opener on startup }