mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 08:58:09 +08:00
* fix(commander): save parameters synchronously after parameter reset ParamResetAll and ParamResetAllConfig relied on the deferred autosave (300 ms delay, 2 s rate limit) to persist the reset, so a reboot or power cycle right after the command ack could leave the old parameters in storage. Save synchronously like ParamResetSensorFactory already does. Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> * fix(rcS): only run caldata BSON size repair on boards with caldata The bsondump docsize block from #23088 repairs a zeroed BSON document size field in /fs/mtd_caldata, but it ran unconditionally with a comment claiming it checks /fs/mtd_params, producing failed-bsondump boot noise on every board without a caldata partition. Move it inside the MTD_CALDATA gate next to the param load it exists to protect. Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com> --------- Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>