mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-05 04:01:41 +02:00
refactor wifi for ESP32 S2 (PR #1127)
This commit is contained in:
parent
4f45444b5f
commit
0d65016ca1
4 changed files with 135 additions and 85 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue