Add boolean to only warn a user of a duplicated key once per boot

This commit is contained in:
Jonathan Bennett
2025-06-10 13:28:36 -05:00
parent 720add72b2
commit e5f6804421
2 changed files with 3 additions and 1 deletions

View File

@@ -258,6 +258,7 @@ class NodeDB
int restoreWhat = SEGMENT_CONFIG | SEGMENT_MODULECONFIG | SEGMENT_DEVICESTATE | SEGMENT_CHANNELS);
private:
bool duplicateWarned = false;
uint32_t lastNodeDbSave = 0; // when we last saved our db to flash
uint32_t lastBackupAttempt = 0; // when we last tried a backup automatically or manually
/// Find a node in our DB, create an empty NodeInfoLite if missing