Closed kent-mcleod closed 1 year ago
Fixed with this fix in util_libs.
What happened was that the overflow IRQ triggered, but before it is handled pwm_get_time() was called, which also checks and handles overflows in case IRQs got missed. Then the IRQ handler incremented time_h
again, making the software think all timers expired immediately.
Nice!
Can be observed by the logs (with timestamps enabled). The test completes instantly, but it's expected to take 3 seconds.