Skip to content

Commit bb57a34

Browse files
author
huangpeng
committed
【修改】修改格式
1 parent 10c78e6 commit bb57a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

port/modules/machine/machine_timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ STATIC mp_obj_t machine_timer_make_new(const mp_obj_type_t *type, size_t n_args,
9292
self->timeout_cb = RT_NULL;
9393
self->is_repeat = RT_TRUE;
9494
self->is_init = RT_FALSE;
95-
self->timer_device->device_id = device_id-1;
95+
self->timer_device->device_id = device_id-1;
9696

9797
// return constant object
9898
return MP_OBJ_FROM_PTR(self);
@@ -216,7 +216,7 @@ STATIC mp_obj_t machine_timer_callback(mp_uint_t n_args, const mp_obj_t *args, m
216216
self->timer_device->rx_indicate = RT_NULL;//Log-off callback function
217217
}
218218
else if(n_args == 2)
219-
{
219+
{
220220
if(self->timeout_cb != mp_const_none)
221221
{
222222
timer_self[self->timer_device->device_id] = self;

0 commit comments

Comments
 (0)