Reduced error log when calling esp_efuse_mac_get_custom()

This commit is contained in:
0xFEEDC0DE64 2022-02-18 11:40:34 +01:00 committed by BOT
parent d5b80e6812
commit f16d8a3e54

View File

@ -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;
}