sandeepmistry / arduino-CAN

An Arduino library for sending and receiving data using CAN bus.
MIT License
696 stars 238 forks source link

Fix:Hangup issue when sending. #118

Open kouuta opened 1 year ago

kouuta commented 1 year ago

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