Modification of charger to detect when the voltage exceeds the maximum measurable
voltage and to turn off the PWM.