issues
search
tinymovr
/
Tinymovr
Compact brushless motor controller with FOC, integrated absolute encoder and CAN Bus.
https://tinymovr.com
GNU General Public License v3.0
229
stars
38
forks
source link
Make the scheduler state volatile
#327
Closed
eufrizz
closed
4 months ago
eufrizz
commented
4 months ago
The state variable is altered in the interrupts, thus should be marked volatile.
Without it, compiler optimisations could have unexpected effects
This was the cause of
https://github.com/tinymovr/Tinymovr/issues/216
I made it static too as it is only part of scheduler.c
yconst
commented
4 months ago
Good catch, thanks!