MeshCore/examples/companion_radio
Wessel Nieboer f4c568b615
Fix orphan blob accumulation on firmware upgrade
Before PR#1495, blobs were written for every advert regardless of
whether the advertiser became a contact. Nodes upgrading from older
firmware (e.g., v1.11.0) have thousands of orphan blobs consuming
storage space.

This adds a one-time cleanup on first boot that:
- Iterates all blob files in /bl/
- Deletes any blob that doesn't match a current contact's pub_key
- Creates a marker file to prevent running again

Affects ESP32 and RP2040 platforms (which use /bl/ directory).
2026-04-04 13:19:15 +02:00
..
ui-new * Companion: applyGPSPrefs() now just in one place (moved out of UITask) 2026-03-25 16:26:51 +11:00
ui-orig Add battery min/max voltage parameter support 2026-01-28 22:24:49 -07:00
AbstractUITask.h ♻️ refactor: unify UI notification methods into single notify() function 2025-09-17 08:56:18 +08:00
DataStore.cpp Rename sx126x_rx_boosted_gain to rx_boosted_gain 2026-03-05 18:14:47 +00:00
DataStore.h add DataStore::deleteBlobByKey() 2026-02-01 00:02:29 +11:00
main.cpp fix: apply persisted GPS enabled setting on boot for companion radio 2026-03-24 09:10:09 -05:00
MyMesh.cpp Fix orphan blob accumulation on firmware upgrade 2026-04-04 13:19:15 +02:00
MyMesh.h * Companion: applyGPSPrefs() now just in one place (moved out of UITask) 2026-03-25 16:26:51 +11:00
NodePrefs.h Rename sx126x_rx_boosted_gain to rx_boosted_gain 2026-03-05 18:14:47 +00:00