Modify if statement for switching gpio.
Merge pull request #9 from Vermee81/develop

Modify if statement for switching gpio.