Neopixel changes for parity with 1.1.x
This commit is contained in:
@ -190,7 +190,14 @@ void GcodeSuite::M109() {
|
||||
const uint8_t blue = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 255, 0);
|
||||
if (blue != old_blue) {
|
||||
old_blue = blue;
|
||||
set_led_color(255, 0, blue);
|
||||
set_led_color(255, 0, blue
|
||||
#if ENABLED(NEOPIXEL_LED)
|
||||
, 0, pixels.getBrightness()
|
||||
#if ENABLED(NEOPIXEL_IS_SEQUENTIAL)
|
||||
, true
|
||||
#endif
|
||||
#endif
|
||||
);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user