Browse Source

Fix Neopixel set_color (#18544)

ManuelMcLure 5 years ago
parent
commit
db0436cc61
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/leds/neopixel.cpp

+ 1
- 1
Marlin/src/feature/leds/neopixel.cpp View File

@@ -53,7 +53,7 @@ Adafruit_NeoPixel Marlin_NeoPixel::adaneo1(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEOPIX
53 53
 #endif
54 54
 
55 55
 void Marlin_NeoPixel::set_color(const uint32_t color) {
56
-  if (get_neo_index() < 0) { 
56
+  if (get_neo_index() >= 0) { 
57 57
     set_pixel_color(get_neo_index(), color);
58 58
     set_neo_index(-1);
59 59
   }

Loading…
Cancel
Save