fix: scan networks on s3 fixed

This commit is contained in:
Yurii
2024-04-15 02:47:42 +03:00
parent f069de0415
commit 73dddd18f0
2 changed files with 6 additions and 2 deletions

View File

@@ -344,7 +344,11 @@ protected:
auto apCount = WiFi.scanComplete();
if (apCount <= 0) {
if (apCount != WIFI_SCAN_RUNNING) {
#ifdef ARDUINO_ARCH_ESP8266
WiFi.scanNetworks(true, true);
#else
WiFi.scanNetworks(true, true, true);
#endif
}
this->webServer->send(404);

View File

@@ -76,7 +76,7 @@
</hgroup>
<form action="/api/network/scan" id="network-scan">
<figure style="max-height: 25em;">
<div style="max-height: 25rem;" class="overflow-auto">
<table id="networks" role="grid">
<thead>
<tr>
@@ -87,7 +87,7 @@
</thead>
<tbody></tbody>
</table>
</figure>
</div>
<button type="submit">Refresh</button>
</form>