mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Reduced error log when calling esp_efuse_mac_get_custom()
This commit is contained in:
parent
d5b80e6812
commit
f16d8a3e54
@ -87,7 +87,12 @@ esp_err_t esp_efuse_mac_get_custom(uint8_t *mac)
|
||||
uint8_t version;
|
||||
esp_efuse_read_field_blob(ESP_EFUSE_MAC_CUSTOM_VER, &version, 8);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user