Skip to content

Commit 36efba7

Browse files
author
Ivan Efimov
committed
Fix legacy target SITL build (caused by extra OSD features)
1 parent 0dd1943 commit 36efba7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/fc/stats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ void statsOnDisarm(void)
9494
statsConfigMutable()->stats_total_dist_m += (DISTANCE_FLOWN_CM - arm_distance_cm) / 100;
9595
}
9696

97+
#ifdef USE_OSD
9798
statsConfigMutable()->stats_extra_total_kaacks += osdGetStats()->extra_kaacks;
9899
statsConfigMutable()->stats_extra_total_kaack_time += (osdGetStats()->extra_kaack_time / 1000000);
100+
#endif // #ifdef USE_OSD
99101

100102
dispatchAdd(&writeStatsEntry, STATS_SAVE_DELAY_US);
101103
}

0 commit comments

Comments
 (0)