From 6ac103ffc2085bc1f1c9f465e24bf227930f1d00 Mon Sep 17 00:00:00 2001 From: OptimusTi <45466510+OptimusTi@users.noreply.github.com> Date: Tue, 6 Oct 2020 12:07:37 -0400 Subject: [PATCH] Update osd.c --- src/main/io/osd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 5c9937fb24..89b446c8b5 100755 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -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 {