Remove extra indents before if followed by if else

This was driving clangd crazy - replaced with indents between the if and conditional parentheses in most places.
This commit is contained in:
Connor Gibson
2025-05-30 13:40:01 -07:00
parent df8e4b9b42
commit b86be0969d
17 changed files with 70 additions and 76 deletions

View File

@@ -47,12 +47,9 @@ void piGlow1 (const int leg, const int ring, const int intensity)
if ((leg < 0) || (leg > 2)) return ;
if ((ring < 0) || (ring > 5)) return ;
/**/ if (leg == 0)
legLeds = leg0 ;
else if (leg == 1)
legLeds = leg1 ;
else
legLeds = leg2 ;
if (leg == 0) { legLeds = leg0 ; }
else if (leg == 1) { legLeds = leg1 ; }
else { legLeds = leg2 ; }
analogWrite (PIGLOW_BASE + legLeds [ring], intensity) ;
}
@@ -71,12 +68,9 @@ void piGlowLeg (const int leg, const int intensity)
if ((leg < 0) || (leg > 2))
return ;
/**/ if (leg == 0)
legLeds = leg0 ;
else if (leg == 1)
legLeds = leg1 ;
else
legLeds = leg2 ;
if (leg == 0) { legLeds = leg0 ; }
else if (leg == 1) { legLeds = leg1 ; }
else { legLeds = leg2 ; }
for (i = 0 ; i < 6 ; ++i)
analogWrite (PIGLOW_BASE + legLeds [i], intensity) ;