LEDs followup (#19133)

This commit is contained in:
ellensp 2020-08-26 01:16:43 +12:00 committed by GitHub
parent e2edfabc3c
commit 66694a213f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@
*/ */
void GcodeSuite::M150() { void GcodeSuite::M150() {
#if ENABLED(NEOPIXEL_LED) #if ENABLED(NEOPIXEL_LED)
neo.set_neo_index(parser.intval('I', -1)); neo.neoindex = parser.intval('I', -1);
#endif #endif
leds.set_color(MakeLEDColor( leds.set_color(MakeLEDColor(
parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0, parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,