From c1b27791fd8deebf52b3742f4b8738c68670b10b Mon Sep 17 00:00:00 2001 From: Mike Trebilcock Date: Mon, 2 Jan 2017 15:49:55 +0000 Subject: [PATCH] fix(wiringpi): remove code linked to mockpin --- gpiozero/pins/wiringpi.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpiozero/pins/wiringpi.js b/gpiozero/pins/wiringpi.js index 8a16f07..c469cbd 100644 --- a/gpiozero/pins/wiringpi.js +++ b/gpiozero/pins/wiringpi.js @@ -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;