fix compile

This commit is contained in:
lumapu 2023-06-10 09:10:33 +02:00
parent 4e54bcf299
commit bdf43fd522
2 changed files with 9 additions and 6 deletions

View file

@ -104,15 +104,18 @@ void ahoywifi::tickWifiLoop() {
DBGPRINTLN(String(mConfig->sys.stationSsid));
mScanCnt = 0;
mScanActive = true;
uint8_t *ssid = ([this] () {
#if defined(ESP8266)
WiFi.scanNetworks(true, true, 0U, ([this] () {
if(mConfig->sys.isHidden)
return (uint8_t *)NULL;
return (uint8_t *)(mConfig->sys.stationSsid);
})();
#if defined(ESP8266)
WiFi.scanNetworks(true, true, 0U, ssid);
})());
#else
WiFi.scanNetworks(true, true, false, 300U, 0U, ssid);
WiFi.scanNetworks(true, true, false, 300U, 0U, ([this] () {
if(mConfig->sys.isHidden)
return (char*)NULL;
return (mConfig->sys.stationSsid);
})());
#endif
return;
}