From af06b1a3227d7163a416269111c65d6d60d88e64 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 28 Jul 2016 09:37:09 +0300 Subject: [PATCH] STM32: Fixed compilation warning (-Wconversion) --- libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp index 6cd61280e8..196b9490e3 100644 --- a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp +++ b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/can.hpp @@ -217,7 +217,7 @@ public: * Range is [1, 3]. * Value of 3 suggests that priority inversion could be taking place. */ - uavcan::uint8_t getPeakNumTxMailboxesUsed() const { return peak_tx_mailbox_index_ + 1; } + uavcan::uint8_t getPeakNumTxMailboxesUsed() const { return uavcan::uint8_t(peak_tx_mailbox_index_ + 1); } }; /**