diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 67b38ae1af..52daa43f4a 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -459,7 +459,7 @@ void osdFormatVelocityStr(char* buff, int32_t vel, bool _3D, bool _max) /** * Returns the average velocity. This always uses stats, so can be called as an OSD element later if wanted, to show a real time average */ -void osdGenerateAverageVelocityStr(char* buff) { +static void osdGenerateAverageVelocityStr(char* buff) { uint32_t cmPerSec = getTotalTravelDistance() / getFlightTime(); osdFormatVelocityStr(buff, cmPerSec, false, false); } diff --git a/src/main/io/osd.h b/src/main/io/osd.h index de15c43c40..e46a3bc0bb 100644 --- a/src/main/io/osd.h +++ b/src/main/io/osd.h @@ -416,7 +416,6 @@ void osdCrosshairPosition(uint8_t *x, uint8_t *y); bool osdFormatCentiNumber(char *buff, int32_t centivalue, uint32_t scale, int maxDecimals, int maxScaledDecimals, int length); void osdFormatAltitudeSymbol(char *buff, int32_t alt); void osdFormatVelocityStr(char* buff, int32_t vel, bool _3D, bool _max); -void osdGenerateAverageVelocityStr(char* buff); // Returns a heading angle in degrees normalized to [0, 360). int osdGetHeadingAngle(int angle);