esp_wifi: fix esp32s2 ap mac address can not find.

pull/4965/head
ChenJianxing 2020-03-17 21:31:32 +08:00
rodzic 2e7ae75011
commit af8d90dbc1
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -174,6 +174,8 @@ esp_err_t esp_read_mac(uint8_t* mac, esp_mac_type_t type)
if(memcmp(mac,mac_begin,6) >= 0 && memcmp(mac_end,mac,6) >=0 ){ if(memcmp(mac,mac_begin,6) >= 0 && memcmp(mac_end,mac,6) >=0 ){
mac[3] += 0x02; // contain carry bit mac[3] += 0x02; // contain carry bit
mac[4] += 0xd0; mac[4] += 0xd0;
} else {
mac[5] += 1;
} }
#else #else
mac[5] += 1; mac[5] += 1;