mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
Update LED throttle mode to use rcData instead of rcThrottle, avoid
having to reference min/maxThrottle. Range was not being calculated correctly. Throttle color now blends with the current color of the LED so that at mid throttle any orientation color is still correct when mixing Throttle and Flight Mode on an LED. Fix tabs. Reduce nesting level.
This commit is contained in:
parent
9723df947e
commit
d904741f43
4 changed files with 20 additions and 6 deletions
|
@ -42,6 +42,11 @@ void setLedHsv(uint16_t index, const hsvColor_t *color)
|
|||
ledColorBuffer[index] = *color;
|
||||
}
|
||||
|
||||
void getLedHsv(uint16_t index, hsvColor_t *color)
|
||||
{
|
||||
*color = ledColorBuffer[index];
|
||||
}
|
||||
|
||||
void setLedValue(uint16_t index, const uint8_t value)
|
||||
{
|
||||
ledColorBuffer[index].v = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue