STM32 CAN driver RX queue bug fix

This commit is contained in:
Pavel Kirienko 2014-04-12 12:55:36 +04:00
parent ad49bc1ece
commit 74b62cc3a9

View File

@ -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();