summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/pyb_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/pyb_can.c b/ports/stm32/pyb_can.c
index 723ff6f9d..181b31738 100644
--- a/ports/stm32/pyb_can.c
+++ b/ports/stm32/pyb_can.c
@@ -222,7 +222,7 @@ static void pyb_can_get_bit_timing(mp_uint_t baudrate, mp_uint_t sample_point,
}
}
- mp_raise_msg(&mp_type_ValueError, MP_ERROR_TEXT("couldn't match baudrate and sample point"));
+ mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("couldn't match baudrate %u and sample point %u"), baudrate, sample_point / 10);
}
// init(mode, prescaler=100, *, sjw=1, bs1=6, bs2=8)