From b042005e035f28f04fe665e2542c1891ef022492 Mon Sep 17 00:00:00 2001 From: LuBeDa Date: Sat, 13 May 2023 16:49:39 +0200 Subject: [PATCH] https://github.com/lubeda/EspHoMaTriXv2/issues/11 --- components/ehmtxv2/EHMTX_queue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ehmtxv2/EHMTX_queue.cpp b/components/ehmtxv2/EHMTX_queue.cpp index 143c643..ca39be3 100644 --- a/components/ehmtxv2/EHMTX_queue.cpp +++ b/components/ehmtxv2/EHMTX_queue.cpp @@ -127,7 +127,7 @@ namespace esphome case MODE_CLOCK: if (this->config_->clock->now().timestamp > 6000) // valid time { - color_ = (this->mode == MODE_RAINBOW_CLOCK) ? this->config_->rainbow_color : this->text_color; + color_ = (this->mode == MODE_RAINBOW_CLOCK) ? this->config_->rainbow_color : this->config_->clock_color; time_t ts = this->config_->clock->now().timestamp; this->config_->display->strftime(xoffset + 15, yoffset, font, color_, display::TextAlign::BASELINE_CENTER, this->config_->time_fmt.c_str(), this->config_->clock->now()); @@ -148,7 +148,7 @@ namespace esphome case MODE_DATE: if (this->config_->clock->now().timestamp > 6000) // valid time { - color_ = (this->mode == MODE_RAINBOW_DATE) ? this->config_->rainbow_color : this->text_color; + color_ = (this->mode == MODE_RAINBOW_DATE) ? this->config_->rainbow_color : this->config_->clock_color; time_t ts = this->config_->clock->now().timestamp; this->config_->display->strftime(xoffset + 15, yoffset, font, color_, display::TextAlign::BASELINE_CENTER, this->config_->date_fmt.c_str(), this->config_->clock->now());