Switching to custom assert function to preserve stack trace and enter PWM bypass; performance improvements