From 68890778f48ca03ff953735254583d1619688947 Mon Sep 17 00:00:00 2001 From: fl1pfl0p Date: Tue, 5 Jan 2016 01:40:02 +0000 Subject: [PATCH] Bugfix: RX pullup checkbox in GUI fixed --- esp-link/cgipins.c | 2 +- html/ui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esp-link/cgipins.c b/esp-link/cgipins.c index 8455a16..c219f77 100644 --- a/esp-link/cgipins.c +++ b/esp-link/cgipins.c @@ -34,7 +34,7 @@ int ICACHE_FLASH_ATTR cgiPinsGet(HttpdConnData *connData) { len = os_sprintf(buff, "{ \"reset\":%d, \"isp\":%d, \"conn\":%d, \"ser\":%d, \"swap\":%d, \"rxpup\":%d }", flashConfig.reset_pin, flashConfig.isp_pin, flashConfig.conn_led_pin, - flashConfig.ser_led_pin, !!flashConfig.swap_uart, 1); + flashConfig.ser_led_pin, !!flashConfig.swap_uart, !!flashConfig.rx_pullup); jsonHeader(connData, 200); httpdSend(connData, buff, len); diff --git a/html/ui.js b/html/ui.js index b5e3a54..80030e3 100644 --- a/html/ui.js +++ b/html/ui.js @@ -473,7 +473,7 @@ function setPins(ev) { url += sep + p + "=" + $("#pin-"+p).value; sep = "&"; }); - url += "&rxpup=" + ($("#pin-rxpup").selected ? "1" : "0"); + url += "&rxpup=" + ($("#pin-rxpup").checked ? "1" : "0"); // console.log("set pins: " + url); ajaxSpin("POST", url, function() { showNotification("Pin assignment changed");