KevinOConnor / can2040

Software CAN bus implementation for rp2040 micro-controllers
GNU General Public License v3.0
667 stars 66 forks source link

Restore stuffed_bits state on missing ack #15

Closed KevinOConnor closed 1 year ago

KevinOConnor commented 1 year ago

As reported in #14, the internal can2040 parsing state may alter the internal stuffed_bits state and thus not be able to properly detect the next SOF on a missing ack. This fixes the issue by restoring the internal stuffed_bits state should a missing ack be detected.

-Kevin