mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Fix Neopixel set_color (#18544)
This commit is contained in:
parent
2266a4c68a
commit
db0436cc61
@ -53,7 +53,7 @@ Adafruit_NeoPixel Marlin_NeoPixel::adaneo1(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEOPIX
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Marlin_NeoPixel::set_color(const uint32_t color) {
|
void Marlin_NeoPixel::set_color(const uint32_t color) {
|
||||||
if (get_neo_index() < 0) {
|
if (get_neo_index() >= 0) {
|
||||||
set_pixel_color(get_neo_index(), color);
|
set_pixel_color(get_neo_index(), color);
|
||||||
set_neo_index(-1);
|
set_neo_index(-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user