mrrwa / LocoNet

An embedded Loconet interface library for Arduino family microcontrollers
Other
65 stars 32 forks source link

TX Echo Suppression & RX Byte Notification #19

Closed deltaphi closed 3 years ago

deltaphi commented 3 years ago

This MR adds a notification when a single byte has been received from LocoNet. This is useful when running on an MCU with an operationg system, as the callback can be used to trigger tasks. When not interested in a notification, the callback can simply be ommited.

This MR also adds the option to suppress a TX message being fed back into the RX buffer. It does not affect the Collision Detection functionality while transmitting a LocoNet Message. The default setting restores the old behavior, where every TX message would show up in the RX buffer as well.

kiwi64ajs commented 3 years ago

Ok, I've merged this.