diff --git a/Makefile b/Makefile
index f1e2060..27fd4cd 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ XTENSA_TOOLS_ROOT ?= $(abspath ../esp-open-sdk/xtensa-lx106-elf/bin)/
# Base directory of the ESP8266 SDK package, absolute
# Typically you'll download from Espressif's BBS, http://bbs.espressif.com/viewforum.php?f=5
-SDK_BASE ?= $(abspath ../esp_iot_sdk_v1.1.0)
+SDK_BASE ?= $(abspath ../esp_iot_sdk_v1.1.2p)
# Esptool.py path and port, only used for 1-time serial flashing
# Typically you'll use https://github.com/themadinventor/esptool
diff --git a/html/140medley.min.js b/html/140medley.min.js
index 78e620a..675ed59 100644
--- a/html/140medley.min.js
+++ b/html/140medley.min.js
@@ -1,4 +1,4 @@
-var b=function(a,b,c,d){c=c||document;d=c[b="on"+b];a=c[b]=function(e){d=d&&d(e=e||c.event);return(a=a&&b(e))?b:d};c=this},
+var p=function(a,b,c,d){c=c||document;d=c[b="on"+b];a=c[b]=function(e){d=d&&d(e=e||c.event);return(a=a&&b(e))?b:d};c=this},
m=function(a,b,c){b=document;c=b.createElement("p");c.innerHTML=a;for(a=b.createDocumentFragment();b=
c.firstChild;)a.appendChild(b);return a},
$=function(a,b){a=a.match(/^(\W)?(.*)/);return(b||document)["getElement"+(a[1]?a[1]=="#"?"ById":"sByClassName":"sByTagName")](a[2])},
diff --git a/html/home.tpl b/html/home.tpl
index 32f02e1..73bb10a 100644
--- a/html/home.tpl
+++ b/html/home.tpl
@@ -44,10 +44,11 @@ function createInputForPin(pin) {
var input = document.createElement("input");
input.type = "radio";
input.name = "pins";
+ input.data = pin.name;
+ input.className = "pin-input";
input.value= pin.value;
input.id = "opt-" + pin.value;
- input.onclick = "setPins("+pin.value+", '"+pin.name+"')";
- if (currPin == pin.value) input.checked = "1";
+ if (currPin == pin.name) input.checked = "1";
var descr = m('");
descr.for = "opt-" + pin.value;
@@ -64,6 +65,10 @@ function displayPins(resp) {
resp.map.forEach(function(v) {
po.appendChild(createInputForPin(v));
});
+ var i, inputs = $(".pin-input");
+ for (i=0; i