rcS: do not reset COM_FLTMODE* on airframe change

An airframe change keeps all RC params except the flight modes. This fixes
that.
This commit is contained in:
Beat Küng 2018-04-17 12:40:54 +02:00 committed by Lorenz Meier
parent 1a0c312f28
commit 64aab8a685

View File

@ -150,8 +150,8 @@ then
#
if param compare SYS_AUTOCONFIG 1
then
# Wipe out params except RC* and total flight time
param reset_nostart RC* LND_FLIGHT_T_*
# Wipe out params except RC*, flight modes and total flight time
param reset_nostart RC* COM_FLTMODE* LND_FLIGHT_T_*
set AUTOCNF yes
else
set AUTOCNF no