move nodeDB::init code into nodeDB constructor (#3455)

This commit is contained in:
Jonathan Bennett
2024-03-21 13:14:02 -05:00
committed by GitHub
parent dfcd0d14f6
commit fd26914d88
3 changed files with 58 additions and 66 deletions

View File

@@ -58,9 +58,6 @@ class NodeDB
/// instead just store in flash - possibly even in the initial alpha release do this hack
NodeDB();
/// Called from service after app start, to do init which can only be done after OS load
static NodeDB *init();
/// write to flash
void saveToDisk(int saveWhat = SEGMENT_CONFIG | SEGMENT_MODULECONFIG | SEGMENT_DEVICESTATE | SEGMENT_CHANNELS),
saveChannelsToDisk(), saveDeviceStateToDisk();