Fixed wrong connection waiting time. #216

enhance/v120
Hieromon Ikasamo 5 years ago
parent bef08e1be3
commit 99bdedd660
  1. 4
      src/AutoConnectDefs.h
  2. 2
      src/AutoConnectPage.cpp

@ -113,9 +113,9 @@
#define AUTOCONNECT_STARTUPTIME (AUTOCONNECT_TIMEOUT/1000) #define AUTOCONNECT_STARTUPTIME (AUTOCONNECT_TIMEOUT/1000)
#endif // !AUTOCONNECT_STARTUPTIME #endif // !AUTOCONNECT_STARTUPTIME
// Response wait time until requesting a result of connection attempt, uint:[s] as String // Response wait time until requesting a result of connection attempt, uint:[ms]
#ifndef AUTOCONNECT_RESPONSE_WAITTIME #ifndef AUTOCONNECT_RESPONSE_WAITTIME
#define AUTOCONNECT_RESPONSE_WAITTIME "2" #define AUTOCONNECT_RESPONSE_WAITTIME 2000
#endif // !AUTOCONNECT_RESPONSE_WAITTIME #endif // !AUTOCONNECT_RESPONSE_WAITTIME
// Default HTTP port // Default HTTP port

@ -761,7 +761,7 @@ const char AutoConnect::_PAGE_CONNECTING[] PROGMEM = {
"</div>" "</div>"
"</div>" "</div>"
"<script type=\"text/javascript\">" "<script type=\"text/javascript\">"
"setTimeout(\"link()\"," AUTOCONNECT_RESPONSE_WAITTIME ");" "setTimeout(\"link()\"," AUTOCONNECT_STRING_DEPLOY(AUTOCONNECT_RESPONSE_WAITTIME) ");"
"function link(){location.href='" AUTOCONNECT_URI_RESULT "';}" "function link(){location.href='" AUTOCONNECT_URI_RESULT "';}"
"</script>" "</script>"
"</body>" "</body>"

Loading…
Cancel
Save