forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_Param: don't enable param backup on all boards
this fixes an issue with resetting of parameters when going between 4.4.x and 4.5.x on MatekH743, and on any other board using flash storage where the storage size has increased from 16k to 32k between 4.4.x and 4.5.x The problem is that when you update to 4.5.x the parameter code stored a backup of parameters in the StorageParamBak storage region which is in the last section of storage. When you downgrade to 4.4.x the AP_FlashStorage::load_sector() code tries to load this data and gets an error as it is beyond the end of the available 16k storage. This triggers an erase_all() and loss of parameters
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters