AP_HAL_ChibiOS: Change division to multiplication

This commit is contained in:
muramura 2024-04-20 19:16:40 +09:00 committed by Peter Barker
parent 049f989037
commit 4a9ddef8ee

View File

@ -1156,10 +1156,10 @@ void CANIface::get_stats(ExpandingString &str)
STM32_FDCANCLK/1000000UL,
_bitrate, unsigned(timings.prescaler),
unsigned(timings.sjw), unsigned(timings.bs1),
unsigned(timings.bs2), timings.sample_point_permill/10.0f,
unsigned(timings.bs2), timings.sample_point_permill*0.1f,
_fdbitrate, unsigned(fdtimings.prescaler),
unsigned(fdtimings.sjw), unsigned(fdtimings.bs1),
unsigned(fdtimings.bs2), fdtimings.sample_point_permill/10.0f,
unsigned(fdtimings.bs2), fdtimings.sample_point_permill*0.1f,
stats.tx_requests,
stats.tx_rejected,
stats.tx_overflow,