Skip to content

Commit

Permalink
Update PID_RelayOutput.ino
Browse files Browse the repository at this point in the history
Overflow: br3ttb#130
  • Loading branch information
rtek1000 authored Jan 12, 2023
1 parent 15da782 commit d72f1c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/PID_RelayOutput/PID_RelayOutput.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ void loop()
************************************************/
if (millis() - windowStartTime > WindowSize)
{ //time to shift the Relay Window
windowStartTime += WindowSize;
//windowStartTime += WindowSize;
windowStartTime = millis();
}
if (Output < millis() - windowStartTime) digitalWrite(RELAY_PIN, HIGH);
else digitalWrite(RELAY_PIN, LOW);
Expand Down

0 comments on commit d72f1c3

Please sign in to comment.