diff options
Diffstat (limited to 'src/arch/esp8266')
| -rw-r--r-- | src/arch/esp8266/arch.cc | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/arch/esp8266/arch.cc b/src/arch/esp8266/arch.cc index e7a26bb..634cf40 100644 --- a/src/arch/esp8266/arch.cc +++ b/src/arch/esp8266/arch.cc @@ -14,6 +14,11 @@ extern "C" {  extern int main(void); +static void ICACHE_FLASH_ATTR jump_to_main(void) +{ +	main(); +} +  void Arch::setup(void)  {  } @@ -24,7 +29,7 @@ void Arch::idle_loop(void)  extern "C" void user_init(void)  { -	main(); +	system_init_done_cb(jump_to_main);  }  Arch arch; | 
