Apply LEDColor, language fixes
This commit is contained in:
@ -132,12 +132,10 @@ 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
|
||||
#if ENABLED(NEOPIXEL_LED)
|
||||
, 0, pixels.getBrightness()
|
||||
#if ENABLED(NEOPIXEL_IS_SEQUENTIAL)
|
||||
, true
|
||||
#endif
|
||||
leds.set_color(
|
||||
MakeLEDColor(red, 0, 255, 0, pixels.getBrightness())
|
||||
#if ENABLED(NEOPIXEL_IS_SEQUENTIAL)
|
||||
, true
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user