linklayer / cantact-fw

Firmware source files for the CANtact tool
http://cantact.io
Other
260 stars 179 forks source link

Fix compiler warnings and missing argument; add nicer LED handling #5

Closed normaldotcom closed 8 years ago

normaldotcom commented 8 years ago

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.