enable mdns; tweak wifi info POST

pull/91/head
Thorsten von Eicken 9 years ago
parent cb75396552
commit fb90ac5457
  1. 2
      esp-link/cgiwifi.c
  2. 2
      html/wifi/wifi.js

@ -113,7 +113,7 @@ wifiAddStateChangeCb(WifiStateChangeCb cb) {
DBG("WIFI: max state change cb count exceeded\n"); 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; static struct mdns_info mdns_info;
// cannot allocate the info struct on the stack, it crashes! // cannot allocate the info struct on the stack, it crashes!

@ -184,7 +184,7 @@ function changeSpecial(e) {
addClass(cb, 'pure-button-disabled'); addClass(cb, 'pure-button-disabled');
ajaxSpin("POST", url, function(resp) { ajaxSpin("POST", url, function(resp) {
removeClass(cb, 'pure-button-disabled'); removeClass(cb, 'pure-button-disabled');
getWifiInfo(); //getWifiInfo(); // it takes 1 second for new settings to be applied
}, function(s, st) { }, function(s, st) {
showWarning("Error: "+st); showWarning("Error: "+st);
removeClass(cb, 'pure-button-disabled'); removeClass(cb, 'pure-button-disabled');

Loading…
Cancel
Save