When the bus is in an unstable state, sending packets will cause a hang-up.
Solution
Change the description of waiting in the while statement until the TX Complete register switches to an if statement.
Change the function return value to determine whether the register has switched.
Verification
Confirm that communication can be resumed even when the CAN High/Low is shorted.
Problem
When the bus is in an unstable state, sending packets will cause a hang-up.
Solution
Change the description of waiting in the while statement until the TX Complete register switches to an if statement. Change the function return value to determine whether the register has switched.
Verification
Confirm that communication can be resumed even when the CAN High/Low is shorted.
Notification
This PR will solve the issue #60