From ab5ac2dc1dba5e5cd84eb5ec5f700b7132c42305 Mon Sep 17 00:00:00 2001 From: Ian Gray Date: Wed, 16 Feb 2022 20:28:55 +0000 Subject: [PATCH] Fix regression caused by f06781bc031856cb6dd8ba49c67f68406d2a985a. See comments in commit on Github. --- src/ESPUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ESPUI.cpp b/src/ESPUI.cpp index b8978dc..f214f98 100644 --- a/src/ESPUI.cpp +++ b/src/ESPUI.cpp @@ -812,7 +812,7 @@ void ESPUIClass::updateControl(Control* control, int clientId) // function like this and it's clients array is private int tryId = 0; - for (size_t count = 0; tryId < (int)this->ws->count() && count < this->ws->count();) + for (size_t count = 0; count < this->ws->count();) { if (this->ws->hasClient(tryId)) { @@ -1014,7 +1014,7 @@ void ESPUIClass::addGraphPoint(uint16_t id, int nValue, int clientId) // function like this and it's clients array is private int tryId = 0; - for (size_t count = 0; tryId < (int)this->ws->count() && count < this->ws->count();) + for (size_t count = 0; count < this->ws->count();) { if (this->ws->hasClient(tryId)) {