aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/commander/state_machine_helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp
index 6c21dfab0..ca3ec94b8 100644
--- a/src/modules/commander/state_machine_helper.cpp
+++ b/src/modules/commander/state_machine_helper.cpp
@@ -544,7 +544,7 @@ transition_result_t flighttermination_state_transition(struct vehicle_status_s *
transition_result_t ret = TRANSITION_DENIED;
/* only check transition if the new state is actually different from the current one */
- if (new_flighttermination_state == status->navigation_state) {
+ if (new_flighttermination_state == status->flighttermination_state) {
ret = TRANSITION_NOT_CHANGED;
} else {