1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-25 03:50:54 +00:00

fix: Use ControlType Constant

This commit is contained in:
leokeba 2022-11-05 14:06:13 +01:00
parent f35d3a19d4
commit 8e3c12935e

View File

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