Skip to content

Commit

Permalink
fix(wiringpi): pin initilisation
Browse files Browse the repository at this point in the history
  • Loading branch information
miketrebilcock committed Jan 2, 2017
1 parent 0c026da commit c3d5d0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpiozero/pins/wiringpi.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ WiringPiPin.prototype.pin_function = function(value) {
if (value === 'input' || value === 'output') {
wpi.pinMode(this._number, GPIO_FUNCTIONS[value]);
wpi.pullUpDnControl(this._number, GPIO_PULL_UPS[this._pull]);
this._function = value;
} else {
throw exc.PinInvalidFunction('invalid function " + value + " for pin ' + this._number.toString());
}
Expand Down

0 comments on commit c3d5d0e

Please sign in to comment.