File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 17
17
* version 2 as published by the Free Software Foundation.
18
18
*/
19
19
20
+ #include < Schedule.h>
20
21
#include " MyHwESP8266.h"
21
22
22
23
bool hwInit (void )
@@ -29,7 +30,9 @@ bool hwInit(void)
29
30
#endif
30
31
#endif
31
32
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 );
33
36
}
34
37
35
38
void 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()
1
2
/*
2
3
* The MySensors Arduino library handles the wireless radio link and protocol
3
4
* between your home built sensors/actuators and HA controller of choice.
@@ -346,3 +347,4 @@ extern "C" void user_init(void)
346
347
347
348
system_init_done_cb(&init_done);
348
349
}
350
+ #endif
You can’t perform that action at this time.
0 commit comments