From cb7cdd4341ae46d1e7b7afd415884be728560401 Mon Sep 17 00:00:00 2001 From: LuBeDa Date: Sat, 20 May 2023 16:38:03 +0200 Subject: [PATCH] Revert "remove shiftx_" This reverts commit 4720583311f6700e10589a130d65c697cfbf5af1. --- components/ehmtxv2/EHMTX.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index 45c3945..e142ff2 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -228,7 +228,7 @@ namespace esphome { if (!this->is_running) { - if (this->clock->now().timestamp > 15) + if (this->clock->is_valid()) { ESP_LOGD(TAG, "time sync => starting"); this->is_running = true; @@ -238,12 +238,6 @@ namespace esphome void EHMTX::force_screen(std::string icon_name, int mode) { - // if (this->string_has_ending(icon_name, "*")) - // { - // // remove the * - // icon_name = icon_name.substr(0, icon_name.length() - 1); - // } - for (uint8_t i = 0; i < MAXQUEUE; i++) { if (this->queue[i]->mode == mode)