bitcraze / crazyflie-firmware

The main firmware for the Crazyflie Nano Quadcopter, Crazyflie Bolt Quadcopter and Roadrunner Positioning Tag.
GNU General Public License v3.0
1.16k stars 1.05k forks source link

Storage; Defragment kve storage when starting up by default #1364

Closed ToveRumar closed 5 months ago

ToveRumar commented 5 months ago

The kve will be defragmented before running the kve sanity check. Defragmenting before checking will make sure that the kve is sane after defragmentation and if not the kve will be reformatted.

This can be turned off in the Kconfig, so that users that do not want this to possibly change their startup time (if eeprom is severely fragmented) can go back to only defragmenting once kve is full

ToveRumar commented 5 months ago

What do you think of the placement of the config item? I placed it in Parameter Subsystem, since that was what i think it is most related to. I gladly take input on this

ataffanel commented 5 months ago

Looks good, merging, thanks!