diff options
Diffstat (limited to 'pic16bit/modpybswitch.c')
-rw-r--r-- | pic16bit/modpybswitch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pic16bit/modpybswitch.c b/pic16bit/modpybswitch.c index f5047b78f4..901e478cc9 100644 --- a/pic16bit/modpybswitch.c +++ b/pic16bit/modpybswitch.c @@ -40,9 +40,9 @@ STATIC const pyb_switch_obj_t pyb_switch_obj[] = { #define NUM_SWITCH MP_ARRAY_SIZE(pyb_switch_obj) #define SWITCH_ID(obj) ((obj) - &pyb_switch_obj[0] + 1) -void pyb_switch_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { +void pyb_switch_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { pyb_switch_obj_t *self = self_in; - print(env, "Switch(%u)", SWITCH_ID(self)); + mp_printf(print, "Switch(%u)", SWITCH_ID(self)); } STATIC mp_obj_t pyb_switch_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { |