badrobotics/FeRTOS

Fix potential panic on tick overflow in debug builds

Opened this issue · 1 comments

Instead of doing normal addition, we should use the wrapping_add() method implemented on integer types where possible.

Another issue to consider would be what happens to tasks that are set to wake up at a time close to max_u64, but do not get woken up before TICKS overflows back to 0.