mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-01 03:26:58 +03:00
Add mechanism for posting functions to the main loop (#2082)
* Add mechanism for posting functions to the main loop (#1064) * Fix indentation, add note that API is not stable
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
//This may be used to change user task stack size:
|
||||
//#define CONT_STACKSIZE 4096
|
||||
#include <Arduino.h>
|
||||
#include "Schedule.h"
|
||||
extern "C" {
|
||||
#include "ets_sys.h"
|
||||
#include "os_type.h"
|
||||
@ -119,6 +120,7 @@ static void loop_wrapper() {
|
||||
setup_done = true;
|
||||
}
|
||||
loop();
|
||||
run_scheduled_functions();
|
||||
esp_schedule();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user