From 9984acdeb249c6fd25fc8047a710aa337a60bf42 Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sat, 18 Jan 2025 13:54:15 +0000 Subject: [PATCH] Corrected calc error --- src/main/io/osd/custom_elements.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/io/osd/custom_elements.c b/src/main/io/osd/custom_elements.c index 72e1dc779f..15dc8714c9 100644 --- a/src/main/io/osd/custom_elements.c +++ b/src/main/io/osd/custom_elements.c @@ -100,7 +100,7 @@ uint8_t customElementDrawPart(char *buff, uint8_t customElementIndex, uint8_t cu } case CUSTOM_ELEMENT_TYPE_GV_FLOAT_1_2: { - osdFormatCentiNumber(buff, (int32_t) (constrain(gvGet(customPartValue), -999, 999) * (int32_t) 10), 1, 2, 0, 4, false); + osdFormatCentiNumber(buff, (int32_t) (constrain(gvGet(customPartValue), -999, 999)), 1, 2, 0, 4, false); return 4; } case CUSTOM_ELEMENT_TYPE_GV_FLOAT_2_1: @@ -161,7 +161,7 @@ uint8_t customElementDrawPart(char *buff, uint8_t customElementIndex, uint8_t cu } case CUSTOM_ELEMENT_TYPE_LC_FLOAT_1_2: { - osdFormatCentiNumber(buff, (int32_t) (constrain(logicConditionGetValue(customPartValue), -999, 999) * (int32_t) 10), 1, 2, 0, 4, false); + osdFormatCentiNumber(buff, (int32_t) (constrain(logicConditionGetValue(customPartValue), -999, 999)), 1, 2, 0, 4, false); return 4; } case CUSTOM_ELEMENT_TYPE_LC_FLOAT_2_1: