Skip to content

Commit

Permalink
Fix legacy target SITL build (caused by extra OSD features)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Efimov committed Aug 15, 2022
1 parent 0dd1943 commit 36efba7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/fc/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ void statsOnDisarm(void)
statsConfigMutable()->stats_total_dist_m += (DISTANCE_FLOWN_CM - arm_distance_cm) / 100;
}

#ifdef USE_OSD
statsConfigMutable()->stats_extra_total_kaacks += osdGetStats()->extra_kaacks;
statsConfigMutable()->stats_extra_total_kaack_time += (osdGetStats()->extra_kaack_time / 1000000);
#endif // #ifdef USE_OSD

dispatchAdd(&writeStatsEntry, STATS_SAVE_DELAY_US);
}
Expand Down

0 comments on commit 36efba7

Please sign in to comment.