mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fixed the CAN acceptance filter initialization in the STM32 driver
This commit is contained in:
parent
fa6dbde51d
commit
414a2e2bef
@ -472,7 +472,8 @@ uavcan::int16_t CanIface::configureFilters(const uavcan::CanFilterConfig* filter
|
||||
{
|
||||
can_->FilterRegister[filter_start_index].FR1 = 0;
|
||||
can_->FilterRegister[filter_start_index].FR2 = 0;
|
||||
can_->FA1R = 1 << filter_start_index;
|
||||
// We can't directly overwrite FA1R because that breaks the other CAN interface
|
||||
can_->FA1R |= 1U << filter_start_index; // Other filters may still be enabled, we don't care
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user