forked from espressif/esp-idf
Merge branch 'contrib/github_pr_8224' into 'master'
Reduce error log when calling esp_efuse_mac_get_custom() (GitHub PR) Closes IDFGH-6580 Closes https://github.com/espressif/esp-idf/pull/8224 See merge request espressif/esp-idf!19705
This commit is contained in:
@@ -87,7 +87,12 @@ esp_err_t esp_efuse_mac_get_custom(uint8_t *mac)
|
|||||||
uint8_t version;
|
uint8_t version;
|
||||||
esp_efuse_read_field_blob(ESP_EFUSE_MAC_CUSTOM_VER, &version, 8);
|
esp_efuse_read_field_blob(ESP_EFUSE_MAC_CUSTOM_VER, &version, 8);
|
||||||
if (version != 1) {
|
if (version != 1) {
|
||||||
ESP_LOGE(TAG, "Base MAC address from BLK3 of EFUSE version error, version = %d", version);
|
// version 0 means has not been setup
|
||||||
|
if (version == 0) {
|
||||||
|
ESP_LOGD(TAG, "No base MAC address in eFuse (version=0)");
|
||||||
|
} else if (version != 1) {
|
||||||
|
ESP_LOGE(TAG, "Base MAC address version error, version = %d", version);
|
||||||
|
}
|
||||||
return ESP_ERR_INVALID_VERSION;
|
return ESP_ERR_INVALID_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user