From 006c8f2380e43e6f15b9a51b3501016baf74410c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 10 Jan 2018 23:51:02 +0100 Subject: [PATCH] Fix delete last scheduler --- code/html/custom.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/html/custom.js b/code/html/custom.js index 8e49ecd6..8e6ebacc 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -147,7 +147,11 @@ function getData(form) { }); // Post process - if ("schSwitch" in data) data["schSwitch"].push(0xFF); + if ("schSwitch" in data) { + data["schSwitch"].push(0xFF); + } else { + data["schSwitch"] = [0xFF]; + } return data;