Browse Source

Added missing pwm param

button
John Shaver 1 year ago
parent
commit
8d10e604f0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      runSchedule.js

+ 1
- 1
runSchedule.js View File

@@ -103,7 +103,7 @@ function render()  {
103 103
 		case "green":
104 104
 			if(ledRed.getPwmDutyCycle()) {
105 105
         DEBUG && console.log("Turning off Red LED.");
106
-				return ledRed.hardwarePwmWrite(0);
106
+				return ledRed.hardwarePwmWrite(HZ, 0);
107 107
 			}
108 108
       if(!ledGreen.digitalRead()) {
109 109
         DEBUG && console.log("Turning on Green LED.");

Loading…
Cancel
Save