refactor wifi for ESP32 S2 (PR #1127)

This commit is contained in:
lumapu 2023-08-27 23:03:29 +02:00
parent 4f45444b5f
commit 0d65016ca1
4 changed files with 135 additions and 85 deletions

View file

@ -225,8 +225,8 @@ void app::onNetwork(bool gotIp) {
#if !defined(ETHERNET)
if (WIFI_AP == WiFi.getMode()) {
mMqttEnabled = false;
everySec(std::bind(&ahoywifi::tickWifiLoop, &mWifi), "wifiL");
}
everySec(std::bind(&ahoywifi::tickWifiLoop, &mWifi), "wifiL");
#endif /* !defined(ETHERNET) */
mInnerLoopCb = [this]() { this->loopStandard(); };
} else {