Surge protection for the power supply