Fixed pio set pin logic
Merge branch 'pio-fix' into integration