Fix switch state sio it is false if PWM switch and S0
Merge pull request #490 from wolfmanjm/upstreamedge

Fix switch state sio it is false if PWM switch and S0