Reduced error log when calling esp_efuse_mac_get_custom()
@@ -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;
}
