From 8ed5a18cf97dbaf140a21f85e5f85d07198a129e Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Wed, 7 Aug 2024 20:57:48 +0100 Subject: [PATCH] Sub: correct comment on prev control mode --- ArduSub/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/mode.cpp b/ArduSub/mode.cpp index d445dd5c8c..cb3b10c53c 100644 --- a/ArduSub/mode.cpp +++ b/ArduSub/mode.cpp @@ -112,7 +112,7 @@ bool Sub::set_mode(Mode::Number mode, ModeReason reason) // perform any cleanup required by previous flight mode exit_mode(flightmode, new_flightmode); - // store previous flight mode (only used by tradeheli's autorotation) + // store previous flight mode prev_control_mode = control_mode; // update flight mode