We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0bd68d commit 96c1679Copy full SHA for 96c1679
1 file changed
src/main/fc/stats.c
@@ -70,9 +70,12 @@ void statsOnDisarm(void)
70
#ifdef USE_GPS
71
// flight counter is incremented at most once per power on
72
if (sensors(SENSOR_GPS)) {
73
- if ((getTotalTravelDistance() - arm_distance_cm) / 100 >= MIN_FLIGHT_DISTANCE_M)
+ if ((getTotalTravelDistance() - arm_distance_cm) / 100 >= MIN_FLIGHT_DISTANCE_M) {
74
statsConfigMutable()->stats_flight_count = prev_flight_count + 1;
75
- } else statsConfigMutable()->stats_flight_count = prev_flight_count + 1;
+ }
76
+ } else {
77
+ statsConfigMutable()->stats_flight_count = prev_flight_count + 1;
78
79
#else
80
81
#endif // USE_GPS
0 commit comments