diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 1756c62550..7f237c8fcc 100755 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -2101,8 +2101,7 @@ static bool osdDrawSingleElement(uint8_t item) case OSD_EFFICIENCY_MAH_PER_KM: { // amperage is in centi amps, speed is in cms/s. We want - // mah/km. Values over 999 are considered useless and - // displayed as "---". Only shows if ground speed > 1m/s. + // mah/km. Only show when ground speed > 1m/s. static pt1Filter_t eFilterState; static timeUs_t efficiencyUpdated = 0; int32_t value = 0; @@ -2118,7 +2117,7 @@ static bool osdDrawSingleElement(uint8_t item) value = eFilterState.state; } } - if (value > 0 && value <= 999 && gpsSol.groundSpeed > 100) { + if (value > 0 && gpsSol.groundSpeed > 100) { tfp_sprintf(buff, "%3d", (int)value); } else { buff[0] = buff[1] = buff[2] = '-'; @@ -2132,8 +2131,7 @@ static bool osdDrawSingleElement(uint8_t item) case OSD_EFFICIENCY_WH_PER_KM: { // amperage is in centi amps, speed is in cms/s. We want - // mWh/km. Values over 999Wh/km are considered useless and - // displayed as "---". Only shows if ground speed > 1m/s. + // mWh/km. Only show when ground speed > 1m/s. static pt1Filter_t eFilterState; static timeUs_t efficiencyUpdated = 0; int32_t value = 0; @@ -2149,7 +2147,7 @@ static bool osdDrawSingleElement(uint8_t item) value = eFilterState.state; } } - if (value > 0 && value <= 999999 && gpsSol.groundSpeed > 100) { + if (value > 0 && gpsSol.groundSpeed > 100) { osdFormatCentiNumber(buff, value / 10, 0, 2, 0, 3); } else { buff[0] = buff[1] = buff[2] = '-';