We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e73e0b commit 01ab02dCopy full SHA for 01ab02d
libraries/lwIP_ESPHost/src/lwIP_ESPHost.cpp
@@ -51,7 +51,7 @@ void ESPHostLwIP::setSSID(const char *ssid) {
51
}
52
53
void ESPHostLwIP::setBSSID(const uint8_t *bssid) {
54
- if (bssid == nullptr) {
+ if (bssid == nullptr || !(bssid[0] | bssid[1] | bssid[2] | bssid[3] | bssid[4] | bssid[5])) {
55
ap.bssid[0] = 0;
56
} else {
57
snprintf((char *)ap.bssid, sizeof(ap.bssid), "%02x:%02x:%02x:%02x:%02x:%02x", bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], bssid[5]);
0 commit comments