Skip to content

Commit

Permalink
fix(wiringpi): remove code linked to mockpin
Browse files Browse the repository at this point in the history
  • Loading branch information
miketrebilcock committed Jan 2, 2017
1 parent c3d5d0e commit c1b2779
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gpiozero/pins/wiringpi.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,10 @@ WiringPiPin.prototype.frequency = function(value) {
if (value === -1) {
this._frequency = undefined;
this._pwm = undefined;
this._change_state(0.0);
wpi.pwmToneWrite(this._number, 0);
} else {
if (this._frequency === undefined) {
this._pwm = wpi.pinMode(this._number, wpi.PWM_OUTPUT);
this._change_state(0.0);
}
wpi.pwmToneWrite(this._number, value);
this._frequency = value;
Expand Down

0 comments on commit c1b2779

Please sign in to comment.