machinekit / machinekit-hal

Universal framework for machine control based on Hardware Abstraction Layer principle
https://www.machinekit.io
Other
109 stars 63 forks source link

hal_signal: fix overwriting OUT dir pin value #395

Closed machinekoder closed 10 months ago

machinekoder commented 10 months ago

This patch fixes a bug when a signal is first linked to an IN or IO dir pin and then to an OUT pin. The previous behavior was that the value of the OUT pin was overwritten by the value of the signal, which can cause unwanted behavior. Now when an OUT dir pin is linked, the signal value is updated.