You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cmaglie My bad. Got confused over the two while-loops. Sorry about that.
There was a second request which actually is more "urgent"; making delay() a weak definition so that it could be redefined as yield() allows. I would like to add a low-power mode to my Scheduler library (when all tasks are in delay()).
The current implementation only calls yield() once (https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/wiring.c#L106)
Could be improved to something like:
Also adding the attribute "weak" could allow redefinition when needed, e.g. allow support for low power mode in Cooperative Scheduler, https://github.com/mikaelpatel/Arduino-Scheduler
void delay(unsigned long ms) __attribute__ ((weak));
The text was updated successfully, but these errors were encountered: