forge: patch 6 fix — apply auto-overwrite default after loadPrefs

Move the AUTO_ADD_OVERWRITE_OLDEST assignment to after _store->loadPrefs()
so existing bots with autoadd_config=0 saved on flash get the bit set on
every boot. Previously the assignment was in the constructor (before
load), so loadPrefs() would overwrite our default with the persisted
zero, meaning the fix only took effect on factory-fresh prefs.
This commit is contained in:
cj-vana
2026-05-16 19:07:27 -06:00
parent 707f492a05
commit 852fcc4bff
2 changed files with 16 additions and 14 deletions