From fc5aa2fbf4ef40e9295044097c820fef81b98eef Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Mon, 25 Nov 2019 23:36:02 +0300 Subject: [PATCH] sch: send type_switch as default --- code/espurna/scheduler.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/scheduler.ino b/code/espurna/scheduler.ino index 5dd7e03c..21473e29 100644 --- a/code/espurna/scheduler.ino +++ b/code/espurna/scheduler.ino @@ -55,7 +55,7 @@ void _schWebSocketOnConnected(JsonObject &root){ switch_.add(getSetting("schSwitch", 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()); minute.add(getSetting("schMinute", i, 0).toInt()); weekdays.add(getSetting("schWDs", i, SCHEDULER_WEEKDAYS));