From 154633448a81b0b2ddcc41c861be4e60de3bf686 Mon Sep 17 00:00:00 2001 From: penfold42 Date: Tue, 28 Jan 2020 11:40:57 +1100 Subject: [PATCH] Fix #201 send ap_timeout as integer, not string --- html/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index 98d93201c..f4212d50c 100644 --- a/html/script.js +++ b/html/script.js @@ -789,7 +789,7 @@ function submitWiFi() { 'ssid': $('#ssid').val(), 'passphrase': $('#password').val(), 'hostname': $('#hostname').val(), - 'sta_timeout': $('#staTimeout').val(), + 'sta_timeout': parseInt($('#staTimeout').val()), 'ip': [parseInt(ip[0]), parseInt(ip[1]), parseInt(ip[2]), parseInt(ip[3])], 'netmask': [parseInt(netmask[0]), parseInt(netmask[1]), parseInt(netmask[2]), parseInt(netmask[3])], 'gateway': [parseInt(gateway[0]), parseInt(gateway[1]), parseInt(gateway[2]), parseInt(gateway[3])],