From db0436cc617a73e248ea151c29086147a7695bb0 Mon Sep 17 00:00:00 2001 From: ManuelMcLure Date: Sun, 5 Jul 2020 13:47:02 -0700 Subject: [PATCH] Fix Neopixel set_color (#18544) --- Marlin/src/feature/leds/neopixel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/feature/leds/neopixel.cpp b/Marlin/src/feature/leds/neopixel.cpp index 3d11c5b64e..d2aa2e9fd9 100644 --- a/Marlin/src/feature/leds/neopixel.cpp +++ b/Marlin/src/feature/leds/neopixel.cpp @@ -53,7 +53,7 @@ Adafruit_NeoPixel Marlin_NeoPixel::adaneo1(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEOPIX #endif 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_neo_index(-1); }