Whitespace cleanup

This commit is contained in:
Scott Lahteine
2020-09-06 22:51:53 -05:00
parent ef1d154a4a
commit b709baba7a
7 changed files with 227 additions and 225 deletions

View File

@ -183,14 +183,14 @@ void LEDLights::set_color(const LEDColor &incol
: neo2.Color(incol.r, incol.g, incol.b, incol.w);
neo2.set_brightness(incol.i);
neo2.set_color(neocolor);
#if ENABLED(LED_CONTROL_MENU)
// Don't update the color when OFF
lights_on = !incol.is_off();
if (lights_on) color = incol;
#endif
}
#if ENABLED(LED_CONTROL_MENU)
void LEDLights2::toggle() { if (lights_on) set_off(); else update(); }
#endif