From 8e3c12935e0157079e0df5c327baa23e1833f984 Mon Sep 17 00:00:00 2001 From: leokeba Date: Sat, 5 Nov 2022 14:06:13 +0100 Subject: [PATCH] fix: Use ControlType Constant --- src/ESPUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESPUI.cpp b/src/ESPUI.cpp index bb18879..abbe40a 100644 --- a/src/ESPUI.cpp +++ b/src/ESPUI.cpp @@ -1043,7 +1043,7 @@ void ESPUIClass::clearGraph(uint16_t id, int clientId) { DynamicJsonDocument document(jsonUpdateDocumentSize); JsonObject root = document.to(); - root[F("type")] = 109; + root[F("type")] = (int)ControlType::Graph + UpdateOffset; root[F("value")] = 0; root[F("id")] = control->id;