Skip to content

Commit 67064ea

Browse files
committed
ESP: add MAC address to boot_out.txt
1 parent ad73d0b commit 67064ea

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

ports/espressif/supervisor/port.c

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

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

0 commit comments

Comments
 (0)