Skip to content

Commit

Permalink
fix: Use ControlType Constant
Browse files Browse the repository at this point in the history
leokeba committed Nov 5, 2022
1 parent f35d3a1 commit 8e3c129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ESPUI.cpp
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 8e3c129

Please sign in to comment.