Victor Oliveira
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
Marlin/src/feature/leds/printer_event_leds.cpp
|
|
@ -41,6 +41,7 @@ PrinterEventLEDs printerEventLEDs; |
|
|
|
uint8_t PrinterEventLEDs::old_intensity = 0; |
|
|
|
|
|
|
|
inline uint8_t pel_intensity(const float &start, const float ¤t, const float &target) { |
|
|
|
if (uint16_t(start) == uint16_t(target)) return 255; |
|
|
|
return (uint8_t)map(constrain(current, start, target), start, target, 0.f, 255.f); |
|
|
|
} |
|
|
|
|
|
|
|