Skip to content

Commit 31ea158

Browse files
committed
esp8266: Change machine.Timer callback to soft callback.
1 parent 1b7d672 commit 31ea158

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/modmachine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ STATIC mp_obj_t esp_timer_make_new(const mp_obj_type_t *type, size_t n_args, siz
157157

158158
STATIC void esp_timer_cb(void *arg) {
159159
esp_timer_obj_t *self = arg;
160-
mp_call_function_1_protected(self->callback, self);
160+
mp_sched_schedule(self->callback, self);
161161
}
162162

163163
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) {

0 commit comments

Comments
 (0)