summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/led.c')
-rw-r--r--stmhal/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/led.c b/stmhal/led.c
index 31665ed5a8..cd553c3912 100644
--- a/stmhal/led.c
+++ b/stmhal/led.c
@@ -210,9 +210,9 @@ void led_debug(int n, int delay) {
/******************************************************************************/
/* Micro Python bindings */
-void led_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
+void led_obj_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
pyb_led_obj_t *self = self_in;
- print(env, "LED(%lu)", self->led_id);
+ mp_printf(print, "LED(%lu)", self->led_id);
}
/// \classmethod \constructor(id)