mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 01:14:08 +08:00
Linux driver: Avoiding use of cstdint from global scope, using proper loops
This commit is contained in:
parent
9a55a4fc9b
commit
288478fa4a
@ -330,10 +330,9 @@ class SocketCanIface : public uavcan::ICanIface
|
||||
{
|
||||
if (!hw_filters_container_.empty())
|
||||
{
|
||||
uint16_t container_size = hw_filters_container_.size();
|
||||
for (uint16_t i = 0; i < container_size; i++)
|
||||
for (auto& f : hw_filters_container_)
|
||||
{
|
||||
if (((frame.can_id & hw_filters_container_[i].can_mask) ^ hw_filters_container_[i].can_id) == 0)
|
||||
if (((frame.can_id & f.can_mask) ^ f.can_id) == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user