mirror of https://github.com/ArduPilot/ardupilot
e039ff2a30
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 |
||
---|---|---|
.. | ||
tools | ||
AP_Param.cpp | ||
AP_Param.h | ||
AP_ParamT.cpp | ||
AP_Param_config.h |