mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 13:04:07 +08:00
STM32 CAN driver RX queue bug fix
This commit is contained in:
parent
ad49bc1ece
commit
74b62cc3a9
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user