NMEA2000-Data-Sender
NMEA2000-Data-Sender copied to clipboard
xSemaphoreGiveFromISR should be used in interrupt handler. Debouncing code is missing too
xSemaphoreGiveFromISR should be used in interrupt handler.
Debouncing code is missing too. Without debouncing in interrupt handler the counts might be wrong.
Here is an article with examples on how to debounce and synchronize interrupt handler with another task
https://circuitdigest.com/microcontroller-projects/arduino-freertos-tutorial-using-semaphore-and-mutex-in-freertos-with-arduino
Thanks