1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

Add guard for GPS in OSD

This commit is contained in:
borisbstyle 2016-11-30 22:05:29 +01:00 committed by GitHub
parent 84b79b1789
commit 44d249f054

View file

@ -508,9 +508,10 @@ static void osdResetStats(void)
static void osdUpdateStats(void)
{
int16_t value;
int16_t value = 0;
#ifdef GPS
value = GPS_speed * 36 / 1000;
#endif
if (stats.max_speed < value)
stats.max_speed = value;