Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2111 Added a hook to user_init in core_esp8266_main.c to be able to do ver… #2136

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cores/esp8266/core_esp8266_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
}