From cdb9a6adcae1a6f24095a00bd99d26d93a05d0b4 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 d445dd5c8c16d5..cb3b10c53c1f88 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