[Solved]Asm volatile rrx?

My guess is in the setup function, attaching interrupts should happen after initializeWithewShiftRegisterCount() - or the interrupt could be accessing tmpPWMValues while it is still set to 0.

1 Like

Thank you @mdma! I can’t believe I didn’t think of that!

Fixed!