1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Fix usages, scaling.

This commit is contained in:
mikeller 2018-05-29 23:08:26 +12:00
parent 9a7c863c3c
commit d401e3bbbe
11 changed files with 30 additions and 25 deletions

View file

@ -495,7 +495,7 @@ static void applyLedFixedLayers(void)
case LED_FUNCTION_RSSI:
color = HSV(RED);
hOffset += scaleRange(getRssi() * 100, 0, 1023, -30, 120);
hOffset += scaleRange(getRssiPercent(), 0, 100, -30, 120);
break;
default:
@ -714,7 +714,7 @@ static void applyLedRssiLayer(bool updateNow, timeUs_t *timer)
int timerDelay = HZ_TO_US(1);
if (updateNow) {
int state = (getRssi() * 100) / 1023;
int state = getRssiPercent();
if (state > 50) {
flash = true;