ArduinoProcessScheduler
ArduinoProcessScheduler copied to clipboard
Compilation failed for RingBuff
Tried to integrate this into my project a Makeblock mBot robot. I got all kinds of compiler errors in RingBuff like "'for loop initial declarations are only allowed in C99 mode". Seems i have to change compiler settings. The problem is that the mBot software is preconfigured and i am not sure if this change will introduce other problems.
So i decide to not use this library.
You're looking for the -std=c99 flag, which allows for loop initialization.
Thanks for letting me know of the issue on other platforms.
Thanks for the quick reply. I know, the point is that compiler setting to c99 is non-standard for the Makeblock mBot robot. The makeblock manufacturer uses other settings when compiling their firmware. So i don't know what will happen if I deviate from the recommended settings. That makes me hesitate to use your solution.
Im now using https://github.com/arkhipenko/TaskScheduler. No offence to your solution its just me feelling unsure about changing the compiler settings.