Northeastern-Electric-Racing / Embedded-Base

A collection of drivers, middleware, and development tools for use across systems
2 stars 1 forks source link

[CAN] - Fix STM32F405 CAN driver #184

Open jr1221 opened 2 weeks ago

jr1221 commented 2 weeks ago

Observed Behavior

Right now, ID lists are ignored and all messages are accepted.

Expected Behavior

Messages in the ID list should be accepted, and that's it.

Steps to Reproduce

  1. See all messages recvd

Screenshots (as needed)

No response

jr1221 commented 2 weeks ago

https://stackoverflow.com/a/71174222/14716761

jr1221 commented 2 weeks ago

Recommend switching the code out of can_init and instead having a function called can_add_filter which takes in the 4 IDs. Then the higher level API can call that as much times as it needs.