diff --git a/cores/esp8266/core_esp8266_main.cpp b/cores/esp8266/core_esp8266_main.cpp index 13bb645e25..14a21e607b 100644 --- a/cores/esp8266/core_esp8266_main.cpp +++ b/cores/esp8266/core_esp8266_main.cpp @@ -152,6 +152,7 @@ void init_done() { esp_schedule(); } +extern void early_init(); extern "C" void user_init(void) { struct rst_info *rtc_info_ptr = system_get_rst_info(); @@ -170,4 +171,7 @@ extern "C" void user_init(void) { LOOP_QUEUE_SIZE); system_init_done_cb(&init_done); + + // early init stuff from user sketch + early_init(); }