[esp32] Add `ignore_efuse_custom_mac` config var (#7527)

This commit is contained in:
Keith Burzinski
2024-10-02 03:27:46 -05:00
committed by GitHub
parent d00e0eb2d6
commit 0d80286bb3
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -709,7 +709,7 @@ void set_mac_address(uint8_t *mac) { esp_base_mac_addr_set(mac); }
#endif
bool has_custom_mac_address() {
#ifdef USE_ESP32
#if defined(USE_ESP32) && !defined(USE_ESP32_IGNORE_EFUSE_CUSTOM_MAC)
uint8_t mac[6];
// do not use 'esp_efuse_mac_get_custom(mac)' because it drops an error in the logs whenever it fails
#ifndef USE_ESP32_VARIANT_ESP32