File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717 * version 2 as published by the Free Software Foundation.
1818 */
1919
20+ #include < Schedule.h>
2021#include " MyHwESP8266.h"
2122
2223bool hwInit (void )
@@ -29,7 +30,9 @@ bool hwInit(void)
2930#endif
3031#endif
3132 EEPROM.begin (EEPROM_size);
32- return true ;
33+ // register _process() to be called at most every 1us,
34+ // at every loop() or yield()
35+ return schedule_recurrent_function_us ([](){ _process (); return true ; }, 1 );
3336}
3437
3538void hwReadConfigBlock (void *buf, void *addr, size_t length)
Original file line number Diff line number Diff line change 1+ #if 0 // replaced by a call to schedule_recurrent_function_us()
12/*
23 * The MySensors Arduino library handles the wireless radio link and protocol
34 * between your home built sensors/actuators and HA controller of choice.
@@ -346,3 +347,4 @@ extern "C" void user_init(void)
346347
347348 system_init_done_cb(&init_done);
348349}
350+ #endif
You can’t perform that action at this time.
0 commit comments