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;