Skip to content

Commit

Permalink
Do not show scheduler tab in Web UI if build without scheduler support (
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Feb 5, 2018
1 parent 8e392d9 commit ccc1cb7
Show file tree
Hide file tree
Showing 4 changed files with 2,635 additions and 2,634 deletions.
Binary file modified code/espurna/data/index.html.gz
Binary file not shown.
1 change: 1 addition & 0 deletions code/espurna/scheduler.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Adapted by Xose Pérez <xose dot perez at gmail dot com>

void _schWebSocketOnSend(JsonObject &root){

root["schVisible"] = 1;
root["maxScheduled"] = SCHEDULER_MAX_SCHEDULES;
JsonArray &sch = root.createNestedArray("schedule");
for (byte i = 0; i < SCHEDULER_MAX_SCHEDULES; i++) {
Expand Down
Loading

0 comments on commit ccc1cb7

Please sign in to comment.