Paciente8159 / uCNC

µCNC - Universal CNC firmware for microcontrollers
https://github.com/Paciente8159/uCNC/wiki
GNU General Public License v3.0
288 stars 64 forks source link

Module event listeners with locks issue #727

Closed patryk3211 closed 2 months ago

patryk3211 commented 2 months ago

https://github.com/Paciente8159/uCNC/blob/3f1a64e53efe606159199383fd938d7078713740/uCNC/src/module.h#L68

CLEARFLAG macro cannot be used here since it is an assigning operation. This has to be replaced with

lock_flags & ~(LISTENER_RUNNING_LOCK)
Paciente8159 commented 2 months ago

Once again thanks for spotting this.