Browse Source

sch: send type_switch as default

master
Maxim Prokhorov 5 years ago
parent
commit
fc5aa2fbf4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/scheduler.ino

+ 1
- 1
code/espurna/scheduler.ino View File

@ -55,7 +55,7 @@ void _schWebSocketOnConnected(JsonObject &root){
switch_.add(getSetting("schSwitch", i, 0).toInt()); switch_.add(getSetting("schSwitch", i, 0).toInt());
action.add(getSetting("schAction", i, 0).toInt()); action.add(getSetting("schAction", i, 0).toInt());
type.add(getSetting("schType", i, 0).toInt());
type.add(getSetting("schType", i, SCHEDULER_TYPE_SWITCH).toInt());
hour.add(getSetting("schHour", i, 0).toInt()); hour.add(getSetting("schHour", i, 0).toInt());
minute.add(getSetting("schMinute", i, 0).toInt()); minute.add(getSetting("schMinute", i, 0).toInt());
weekdays.add(getSetting("schWDs", i, SCHEDULER_WEEKDAYS)); weekdays.add(getSetting("schWDs", i, SCHEDULER_WEEKDAYS));


Loading…
Cancel
Save