Skip to content

Commit 361e0eb

Browse files
authored
Merge pull request #10239 from Neradoc/add-mac-in-boot-esp
ESP: add MAC address to boot_out.txt (for wifi boards)
2 parents b508e41 + 32d35ef commit 361e0eb

File tree

1 file changed

+12
-0
lines changed
  • ports/espressif/supervisor

1 file changed

+12
-0
lines changed

ports/espressif/supervisor/port.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,18 @@ void port_idle_until_interrupt(void) {
493493
}
494494
}
495495

496+
#if CIRCUITPY_WIFI
497+
void port_boot_info(void) {
498+
uint8_t mac[6];
499+
esp_wifi_get_mac(ESP_IF_WIFI_STA, mac);
500+
mp_printf(&mp_plat_print, "MAC");
501+
for (int i = 0; i < 6; i++) {
502+
mp_printf(&mp_plat_print, ":%02X", mac[i]);
503+
}
504+
mp_printf(&mp_plat_print, "\n");
505+
}
506+
#endif
507+
496508
void port_post_boot_py(bool heap_valid) {
497509
if (!heap_valid && filesystem_present()) {
498510
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy