fix: Use ControlType Constant

This commit is contained in:
leokeba 2022-11-05 14:06:13 +01:00
parent f35d3a19d4
commit 8e3c12935e
1 changed files with 1 additions and 1 deletions

View File

@ -1043,7 +1043,7 @@ void ESPUIClass::clearGraph(uint16_t id, int clientId) {
DynamicJsonDocument document(jsonUpdateDocumentSize);
JsonObject root = document.to<JsonObject>();
root[F("type")] = 109;
root[F("type")] = (int)ControlType::Graph + UpdateOffset;
root[F("value")] = 0;
root[F("id")] = control->id;