1
0
Fork 0
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:
OptimusTi 2020-10-06 12:07:37 -04:00 committed by GitHub
parent 8b2e81fb31
commit 6ac103ffc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {