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.
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.