mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
fix fadeGammaReverse is applied to the time variable (#23194)
This commit is contained in:
parent
f4bb9d98b6
commit
ea2baee3b8
@ -2125,7 +2125,7 @@ bool LightApplyFade(void) { // did the value chanegd and needs to be applied
|
||||
//Serial.printf("Fade: %d / %d - ", fade_current, Light.fade_duration);
|
||||
for (uint32_t i = 0; i < Light.subtype; i++) {
|
||||
Light.fade_cur_10[i] = fadeGamma(i,
|
||||
changeUIntScale(fadeGammaReverse(i, fade_current),
|
||||
changeUIntScale(fade_current,
|
||||
0, Light.fade_duration,
|
||||
fadeGammaReverse(i, Light.fade_start_10[i]),
|
||||
fadeGammaReverse(i, Light.fade_end_10[i])));
|
||||
|
Loading…
x
Reference in New Issue
Block a user