Skip to content

Commit

Permalink
Merge pull request #1 from Staars/patch-6
Browse files Browse the repository at this point in the history
Support for xiaomi single core ESP32
  • Loading branch information
Jason2866 authored Apr 19, 2021
2 parents 7c86027 + b12d7a5 commit cc43307
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/esp32/system_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ esp_err_t esp_efuse_mac_get_default(uint8_t* mac)
return ESP_OK;
}
} else {
if (esp_efuse_get_pkg_ver() == 3) {
ESP_LOGI(TAG, "Found OEM-type ESP32, ignore EFUSE CRC error ...");
return ESP_OK; // override for Xiaomi SOC's and maybe others too
}
ESP_LOGE(TAG, "Base MAC address from BLK0 of EFUSE CRC error, efuse_crc = 0x%02x; calc_crc = 0x%02x", efuse_crc, calc_crc);
abort();
}
Expand Down

0 comments on commit cc43307

Please sign in to comment.