Neopixel changes for parity with 1.1.x

This commit is contained in:
Scott Lahteine
2017-10-25 15:50:36 -05:00
parent da2dc2bfa4
commit 3ac581eac9
10 changed files with 71 additions and 40 deletions

View File

@ -132,7 +132,14 @@ void GcodeSuite::M190() {
const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255);
if (red != old_red) {
old_red = red;
set_led_color(red, 0, 255);
set_led_color(red, 0, 255
#if ENABLED(NEOPIXEL_LED)
, 0, pixels.getBrightness()
#if ENABLED(NEOPIXEL_IS_SEQUENTIAL)
, true
#endif
#endif
);
}
}
#endif