Skip to content

Commit

Permalink
2023.9.1: Fix blank icon_clock icon_date screen on vertical scroll
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
andrewjswan authored Nov 20, 2023
1 parent cae0bed commit 251666c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions components/ehmtxv2/EHMTX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
for (auto *t : on_add_screen_triggers_)
Expand Down Expand Up @@ -1350,7 +1350,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
for (auto *t : on_add_screen_triggers_)
Expand Down Expand Up @@ -1433,7 +1433,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
for (auto *t : on_add_screen_triggers_)
Expand Down Expand Up @@ -1470,7 +1470,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
for (auto *t : on_add_screen_triggers_)
Expand Down Expand Up @@ -1531,7 +1531,7 @@ namespace esphome
screen->screen_time_ = EHMTXv2_CLOCK_INTERVALL * 1000.0 - 2000.0;
}
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
Expand All @@ -1548,7 +1548,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
screen->status();
Expand Down Expand Up @@ -1613,7 +1613,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
for (auto *t : on_add_screen_triggers_)
Expand Down Expand Up @@ -1645,7 +1645,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
for (auto *t : on_add_screen_triggers_)
Expand All @@ -1666,7 +1666,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
screen->status();
Expand All @@ -1684,7 +1684,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif
screen->status();
Expand Down Expand Up @@ -1954,7 +1954,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif

Expand Down Expand Up @@ -1991,7 +1991,7 @@ namespace esphome
screen->screen_time_ = screen_time * 1000.0;
screen->endtime = this->get_tick() + (lifetime > 0 ? lifetime * 60000.0 : screen->screen_time_);
#ifdef EHMTXv2_USE_VERTICAL_SCROLL
this->pixels_ = 0;
screen->pixels_ = 0;
screen->scroll_reset = 32;
#endif

Expand Down

0 comments on commit 251666c

Please sign in to comment.