From bf1c11a33c7e8149b9fbbd325586c2bde20c9e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= <beat-kueng@gmx.net> Date: Sat, 9 Jun 2018 14:29:43 +0200 Subject: [PATCH] commander: move comment to the right place It's now the same way as in the ARM logic further down. --- src/modules/commander/commander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 227b55398a..92b1c33842 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -2271,9 +2271,9 @@ Commander::run() } stick_off_counter++; - /* do not reset the counter when holding the arm button longer than needed */ } else if (!(arm_switch_is_button == 1 && sp_man.arm_switch == manual_control_setpoint_s::SWITCH_POS_ON)) { + /* do not reset the counter when holding the arm button longer than needed */ stick_off_counter = 0; } -- GitLab