mirror of
https://github.com/pschatzmann/arduino-audio-tools.git
synced 2024-09-21 02:17:31 +00:00
Fix race condition in esp now communication (#1673)
when calling mac address to fast after setting it happened on ESP32-WROOM-32E with IDF version > 5 Co-authored-by: dosas <dosas@github.com>
This commit is contained in:
parent
22cc9232c8
commit
284d525693
@ -112,6 +112,7 @@ class ESPNowStream : public BaseStream {
|
||||
LOGE("Could not set mac address");
|
||||
return false;
|
||||
}
|
||||
delay(500); // On some boards calling macAddress to early leads to a race condition.
|
||||
// checking if address has been updated
|
||||
const char *addr = macAddress();
|
||||
if (strcmp(addr, cfg.mac_address) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user