Added missing pwm param
This commit is contained in:
parent
e88568b3c7
commit
8d10e604f0
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ function render() {
|
||||||
case "green":
|
case "green":
|
||||||
if(ledRed.getPwmDutyCycle()) {
|
if(ledRed.getPwmDutyCycle()) {
|
||||||
DEBUG && console.log("Turning off Red LED.");
|
DEBUG && console.log("Turning off Red LED.");
|
||||||
return ledRed.hardwarePwmWrite(0);
|
return ledRed.hardwarePwmWrite(HZ, 0);
|
||||||
}
|
}
|
||||||
if(!ledGreen.digitalRead()) {
|
if(!ledGreen.digitalRead()) {
|
||||||
DEBUG && console.log("Turning on Green LED.");
|
DEBUG && console.log("Turning on Green LED.");
|
||||||
|
|
Loading…
Reference in a new issue