From fb90ac54574e92beaf0ee26c439e01d451afe837 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Thu, 3 Dec 2015 22:43:32 -0800 Subject: [PATCH] enable mdns; tweak wifi info POST --- esp-link/cgiwifi.c | 2 +- html/wifi/wifi.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esp-link/cgiwifi.c b/esp-link/cgiwifi.c index 0fcbf71..1af0051 100644 --- a/esp-link/cgiwifi.c +++ b/esp-link/cgiwifi.c @@ -113,7 +113,7 @@ wifiAddStateChangeCb(WifiStateChangeCb cb) { DBG("WIFI: max state change cb count exceeded\n"); } -static bool mdns_started = false; +static bool mdns_started = true; static struct mdns_info mdns_info; // cannot allocate the info struct on the stack, it crashes! diff --git a/html/wifi/wifi.js b/html/wifi/wifi.js index 1718784..c33960d 100644 --- a/html/wifi/wifi.js +++ b/html/wifi/wifi.js @@ -184,7 +184,7 @@ function changeSpecial(e) { addClass(cb, 'pure-button-disabled'); ajaxSpin("POST", url, function(resp) { removeClass(cb, 'pure-button-disabled'); - getWifiInfo(); + //getWifiInfo(); // it takes 1 second for new settings to be applied }, function(s, st) { showWarning("Error: "+st); removeClass(cb, 'pure-button-disabled');