KevinOConnor / can2040

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

Restore stuffed_bits state on missing ack #15

Closed KevinOConnor closed 2 years ago

KevinOConnor commented 2 years 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