1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Allow thrust color to be combined with throttle.

This commit is contained in:
Dominic Clifton 2015-02-01 18:32:14 +00:00
parent 0fd7a2568c
commit 5512ff08c3
2 changed files with 2 additions and 2 deletions

View file

@ -771,7 +771,7 @@ void applyLedThrottleLayer()
int scaled = scaleRange(rcData[THROTTLE], PWM_RANGE_MIN, PWM_RANGE_MAX, -60, +60);
scaled += HSV_HUE_MAX;
color.h = scaled % HSV_HUE_MAX;
color.h = (color.h + scaled) % HSV_HUE_MAX;
setLedHsv(ledIndex, &color);
}
}