Return network status

This commit is contained in:
fvanroie 2020-12-02 02:47:18 +01:00
parent 046d4f3ec6
commit ee89dd3b33

View File

@ -58,12 +58,13 @@ void IRAM_ATTR networkLoop(void)
bool networkEvery5Seconds(void)
{
#if HASP_USE_ETHERNET > 0
ethernetEvery5Seconds();
return ethernetEvery5Seconds();
#endif
#if HASP_USE_WIFI > 0
wifiEvery5Seconds();
return wifiEvery5Seconds();
#endif
return false;
}
bool networkEverySecond(void)