mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 08:45:31 +03:00
Update osd.c
This commit is contained in:
parent
8b2e81fb31
commit
6ac103ffc2
1 changed files with 2 additions and 1 deletions
|
@ -1653,7 +1653,8 @@ static bool osdDrawSingleElement(uint8_t item)
|
|||
|
||||
case OSD_CRSF_LQ: {
|
||||
buff[0] = SYM_BLANK;
|
||||
int16_t scaledLQ = scaleRange(constrain(rxLinkStatistics.uplinkLQ, 0, 100), 0, 100, 170, 300);
|
||||
int16_t statsLQ = rxLinkStatistics.uplinkLQ;
|
||||
int16_t scaledLQ = scaleRange(constrain(statsLQ, 0, 100), 0, 100, 170, 300);
|
||||
if (rxLinkStatistics.rfMode == 2) {
|
||||
tfp_sprintf(buff, "%d:%3d%s", rxLinkStatistics.rfMode, scaledLQ, "%");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue