mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-21 17:40:54 +00:00
fix: Use ControlType Constant
This commit is contained in:
parent
f35d3a19d4
commit
8e3c12935e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user