summaryrefslogtreecommitdiff
path: root/stmhal/usrsw.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/usrsw.c')
-rw-r--r--stmhal/usrsw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/usrsw.c b/stmhal/usrsw.c
index b6320054a..821df6010 100644
--- a/stmhal/usrsw.c
+++ b/stmhal/usrsw.c
@@ -75,8 +75,8 @@ typedef struct _pyb_switch_obj_t {
STATIC const pyb_switch_obj_t pyb_switch_obj = {{&pyb_switch_type}};
-void pyb_switch_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
- print(env, "Switch()");
+void pyb_switch_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
+ mp_print_str(print, "Switch()");
}
/// \classmethod \constructor()