rcS: add SYS_PARAM_VER to param reset_all exception list

Avoids an extra reboot when resetting the airframe
This commit is contained in:
Beat Küng 2021-01-14 13:22:18 +01:00 committed by Daniel Agar
parent ba6a8080ea
commit e1983381e7
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ else
then
if param compare SYS_AUTOCONFIG 1
then
# Wipe out params except RC*, flight modes, total flight time, accel cal, gyro cal, next flight UUID
param reset_all SYS_AUTOSTART SYS_AUTOCONFIG RC* COM_FLTMODE* LND_FLIGHT_T_* TC_* CAL_ACC* CAL_GYRO* COM_FLIGHT_UUID
# Wipe out params except RC*, flight modes, total flight time, calibration parameters, next flight UUID
param reset_all SYS_AUTO* RC* COM_FLTMODE* LND_FLIGHT* TC_* CAL_ACC* CAL_GYRO* COM_FLIGHT* SYS_PARAM_VER
fi
set AUTOCNF yes