From 46793c5e0699d494cb9ec10ca70b6d833acbec46 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Fri, 14 Aug 2015 05:11:24 +0300 Subject: [PATCH] STM32 timing doc fix --- libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp b/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp index f88600adc5..7e794dc28d 100644 --- a/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp +++ b/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp @@ -301,7 +301,7 @@ int CanIface::computeTimings(const uavcan::uint32_t target_bitrate, Timings& out * Helpful Python: * def sample_point_from_btr(x): * assert 0b0011110010000000111111000000000 & x == 0 - * ts2,ts1,brp = (BTR>>20)&7, (BTR>>16)&15, BTR&511 + * ts2,ts1,brp = (x>>20)&7, (x>>16)&15, x&511 * return (1+ts1+1)/(1+ts1+1+ts2+1) * */