Skip to content

Commit

Permalink
Fix Neopixel set_color (#18544)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelMcLure authored Jul 5, 2020
1 parent 2266a4c commit db0436c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/feature/leds/neopixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit db0436c

Please sign in to comment.