Skip to content

Commit

Permalink
ports/psoc6/machine_i2c.c: Passing argument event as int.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Feb 2, 2024
1 parent 8ac8dfb commit 6fbdeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/psoc6/machine_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(machine_i2c_slave_conf_tx_buffer_obj, machine_i

static void i2c_irq_handler(void *callback_arg, cyhal_i2c_event_t event) {
machine_i2c_obj_t *self = callback_arg;
mp_sched_schedule(self->callback, MP_OBJ_FROM_PTR(self));
mp_sched_schedule(self->callback, mp_obj_new_int(event));
}

STATIC mp_obj_t machine_i2c_slave_irq(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
Expand Down

0 comments on commit 6fbdeb6

Please sign in to comment.