Due to some missing includes, the code compiled with the call to is_can_msg_pending() despite not having any arguments. The missing includes are now resolved and the correct argument is passed.
I also added an LED handler that turns on the LED when a message is sent or received, turns it off after a set duration of time, and only allows turn-on after the LED has been off for the set duration. This prevents the LED from being solid on high-activity busses.
Due to some missing includes, the code compiled with the call to is_can_msg_pending() despite not having any arguments. The missing includes are now resolved and the correct argument is passed.
I also added an LED handler that turns on the LED when a message is sent or received, turns it off after a set duration of time, and only allows turn-on after the LED has been off for the set duration. This prevents the LED from being solid on high-activity busses.