LuBeDa 3 years ago
parent b042005e03
commit 17676f66c8

@ -223,7 +223,7 @@ namespace esphome
void EHMTX::update() // called from polling component void EHMTX::update() // called from polling component
{ {
if (!this->is_running){ if (!this->is_running){
if (this->clock->now().timestamp > 6000) { if (this->clock->now().timestamp > 15) {
ESP_LOGD(TAG, "time sync => starting"); ESP_LOGD(TAG, "time sync => starting");
this->is_running = true; this->is_running = true;
} }

@ -37,7 +37,7 @@ namespace esphome
class EHMTX : public PollingComponent, public api::CustomAPIDevice { class EHMTX : public PollingComponent, public api::CustomAPIDevice {
protected: protected:
float get_setup_priority() const override { return esphome::setup_priority::WIFI; } float get_setup_priority() const override { return esphome::setup_priority::PROCESSOR; }
uint8_t brightness_; uint8_t brightness_;
uint32_t boot_anim=0; uint32_t boot_anim=0;
uint8_t screen_pointer; uint8_t screen_pointer;

Loading…
Cancel
Save