CAN1/CAN2 LEDs may remain turned on when no CANrx #1
Notifications
Due Date
No due date set.
Blocks
Reference: eeeck/CANdigger#1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since LEDs are toggled, they may remain in HIGH status when no CANrx. Fix by actually putting it to LOW state after a few ms of no CANrx. Maybe this can be done with a semaphore.
canlog.c, lines 104-110
One solution may be to set an event flag for a separate LED task when reading an incoming can message
Use this to keep write it HIGH for some ms and then write it LOW.
and keep the hearbeat for the error LED, inside the error hanlder
rtos-timersto led-semaphoreIssue was completed by using semaphores that get released inside vCANLoggerListen, which are acquired by vLEDHeartbeat, which in turns triggers a timer. If after the timer end there is not a subsequent semaphore release, the timer stops turning the GPIO pin off.