From 9d7e7697cff7720a031fb4e81dae85692cc174d8 Mon Sep 17 00:00:00 2001 From: LuBeDa Date: Sun, 12 Nov 2023 11:49:02 +0100 Subject: [PATCH] https://github.com/lubeda/EspHoMaTriXv2/issues/133 --- components/ehmtxv2/EHMTX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index 6b10fb36..0503c810 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -777,7 +777,7 @@ namespace esphome } } - if ((this->queue[i]->endtime > 0.0) && (this->queue[i]->last_time < last_time)) + if ((this->queue[i]->endtime > this->get_tick()) && (this->queue[i]->last_time < last_time)) { hit = i; last_time = this->queue[i]->last_time;