fix fadeGammaReverse is applied to the time variable (#23194)

This commit is contained in:
Qowy 2025-03-27 10:17:43 +01:00 committed by GitHub
parent f4bb9d98b6
commit ea2baee3b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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])));