* companion: RegionMap now used in Datastore

* companion: new CMD_SET_DEFAULT_FLOOD_SCOPE
* support for regional builds with DEFAULT_REGION_SCOPE
This commit is contained in:
Scott Powell 2026-04-13 21:06:53 +10:00
parent 6a939ed8f8
commit d131e8ae35
5 changed files with 68 additions and 19 deletions

View file

@ -15,6 +15,7 @@ DataStore::DataStore(FILESYSTEM& fs, mesh::RTCClock& clock) : _fs(&fs), _fsExtra
#else
identity_store(fs, "/identity")
#endif
, regions(keystore)
{
}
@ -27,6 +28,7 @@ DataStore::DataStore(FILESYSTEM& fs, FILESYSTEM& fsExtra, mesh::RTCClock& clock)
#else
identity_store(fs, "/identity")
#endif
, regions(keystore)
{
}
#endif
@ -61,6 +63,8 @@ void DataStore::begin() {
// init 'blob store' support
_fs->mkdir("/bl");
#endif
regions.load(_fs);
}
#if defined(ESP32)