Async scan + bugfixes (#947)

* Support asynchronous WiFi scan

* Fixed buffer overflow in getChipId

* ESP compatibility fixes

* fixup! ESP compatibility fixes
This commit was merged in pull request #947.
This commit is contained in:
Drzony
2022-10-31 17:01:10 -07:00
committed by GitHub
parent 44eeebbc6f
commit 6bbaf64daf
4 changed files with 70 additions and 26 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ void ArduinoOTAClass::begin(bool useMDNS) {
_useMDNS = useMDNS;
if (!_hostname.length()) {
char tmp[15];
char tmp[2 * PICO_UNIQUE_BOARD_ID_SIZE_BYTES + 6];
sprintf(tmp, "pico-%s", rp2040.getChipID());
_hostname = tmp;
}