Skip to content

Commit

Permalink
Fixed FindById
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed Jul 21, 2024
1 parent 613097e commit 3c54fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ CanMap::CANIDMAP* CanMap::FindById(CANIDMAP *canMap, uint32_t canId)
{
forEachCanMap(curMap, canMap)
{
if ((curMap->canId & ~SHIFT_FORCE_FLAG(1)) == canId)
if ((curMap->canId & ~SHIFT_FORCE_FLAG(1)) == (canId & ~SHIFT_FORCE_FLAG(1)))
return curMap;
}
return 0;
Expand Down

0 comments on commit 3c54fa8

Please sign in to comment.