Formatting.
This commit is contained in:
parent
22842dfc70
commit
5b92a738ae
@ -25,13 +25,11 @@ class slowPWM {
|
||||
unsigned long offTime = period - onTime;
|
||||
unsigned long currentTime = millis();
|
||||
|
||||
if (outputState == HIGH && (currentTime - lastSwitchTime >= onTime))
|
||||
{
|
||||
if (outputState == HIGH && (currentTime - lastSwitchTime >= onTime)) {
|
||||
lastSwitchTime = currentTime;
|
||||
outputState = LOW;
|
||||
}
|
||||
if (outputState == LOW && (currentTime - lastSwitchTime >= offTime))
|
||||
{
|
||||
if (outputState == LOW && (currentTime - lastSwitchTime >= offTime)) {
|
||||
lastSwitchTime = currentTime;
|
||||
outputState = HIGH;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user