mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 09:16:41 +00:00
Code cleanup
This commit is contained in:
parent
a2c9686341
commit
313d4b4152
@ -2353,20 +2353,20 @@ void httpSetup()
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
void httpReconnect()
|
// static void httpReconnect()
|
||||||
{
|
// {
|
||||||
if(!http_config.enable) return;
|
// if(!http_config.enable) return;
|
||||||
|
|
||||||
if(webServerStarted) {
|
// if(webServerStarted) {
|
||||||
httpStop();
|
// httpStop();
|
||||||
} else
|
// } else
|
||||||
#if HASP_USE_WIFI > 0 && !defined(STM32F4xx)
|
// #if HASP_USE_WIFI > 0 && !defined(STM32F4xx)
|
||||||
if(WiFi.status() == WL_CONNECTED || WiFi.getMode() != WIFI_STA)
|
// if(WiFi.status() == WL_CONNECTED || WiFi.getMode() != WIFI_STA)
|
||||||
#endif
|
// #endif
|
||||||
{
|
// {
|
||||||
httpStart();
|
// httpStart();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
IRAM_ATTR void httpLoop(void)
|
IRAM_ATTR void httpLoop(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user