We've strengthened up the checks around the running flag, and also improved the behavior of the currently running task pointer as well.
It was possible if yieldForMicros was used in an event that it could run again within the yieldForMicros function if an interrupt was triggered. This is not standard behavior and the new behavior prevents this, just leaving the event to be triggered again later.
We've strengthened up the checks around the running flag, and also improved the behavior of the currently running task pointer as well.
It was possible if yieldForMicros was used in an event that it could run again within the yieldForMicros function if an interrupt was triggered. This is not standard behavior and the new behavior prevents this, just leaving the event to be triggered again later.