Formatting.

This commit is contained in:
Chris Giacofei 2022-01-14 08:41:02 -05:00
parent 22842dfc70
commit 5b92a738ae

View File

@ -25,13 +25,11 @@ class slowPWM {
unsigned long offTime = period - onTime; unsigned long offTime = period - onTime;
unsigned long currentTime = millis(); unsigned long currentTime = millis();
if (outputState == HIGH && (currentTime - lastSwitchTime >= onTime)) if (outputState == HIGH && (currentTime - lastSwitchTime >= onTime)) {
{
lastSwitchTime = currentTime; lastSwitchTime = currentTime;
outputState = LOW; outputState = LOW;
} }
if (outputState == LOW && (currentTime - lastSwitchTime >= offTime)) if (outputState == LOW && (currentTime - lastSwitchTime >= offTime)) {
{
lastSwitchTime = currentTime; lastSwitchTime = currentTime;
outputState = HIGH; outputState = HIGH;
} }