Disabled interrupts during PWM pass-through and added a repeat mechanism to detect PWM changes during interrupt execution