🎨 Fix L64xx enable, clean up conditionals
This commit is contained in:
@ -56,10 +56,10 @@ void GcodeSuite::M150() {
|
||||
#if ENABLED(NEOPIXEL_LED)
|
||||
const int8_t index = parser.intval('I', -1);
|
||||
#if ENABLED(NEOPIXEL2_SEPARATE)
|
||||
int8_t brightness, unit = parser.intval('S', -1);
|
||||
int8_t brightness = neo.brightness(), unit = parser.intval('S', -1);
|
||||
switch (unit) {
|
||||
case -1: neo2.neoindex = index; // fall-thru
|
||||
case 0: neo.neoindex = index; brightness = neo.brightness(); break;
|
||||
case 0: neo.neoindex = index; break;
|
||||
case 1: neo2.neoindex = index; brightness = neo2.brightness(); break;
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user