From 74b62cc3a9832aeff1bb8ed9c002c239c91e9ded Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 12 Apr 2014 12:55:36 +0400 Subject: [PATCH] STM32 CAN driver RX queue bug 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 0a145a0898..77ec452295 100644 --- a/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp +++ b/libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp @@ -94,7 +94,7 @@ void CanIface::RxQueue::push(const uavcan::CanFrame& frame, const uint64_t& utc_ in_ = 0; } len_++; - if (len_ >= capacity_) + if (len_ > capacity_) { len_ = capacity_; registerOverflow();