esp8266: Change machine.Timer callback to soft callback.
This commit is contained in:
parent
1b7d67266d
commit
31ea158557
@ -157,7 +157,7 @@ STATIC mp_obj_t esp_timer_make_new(const mp_obj_type_t *type, size_t n_args, siz
|
|||||||
|
|
||||||
STATIC void esp_timer_cb(void *arg) {
|
STATIC void esp_timer_cb(void *arg) {
|
||||||
esp_timer_obj_t *self = arg;
|
esp_timer_obj_t *self = arg;
|
||||||
mp_call_function_1_protected(self->callback, self);
|
mp_sched_schedule(self->callback, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC mp_obj_t esp_timer_init_helper(esp_timer_obj_t *self, mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
STATIC mp_obj_t esp_timer_init_helper(esp_timer_obj_t *self, mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user