bootstrap RTC from contact.lastmod and improve slot overwrite logic

slot overwrite logic can now safely use contact.lastmod to find oldest contact for overwrite
This commit is contained in:
taco 2026-01-13 04:27:27 +11:00
parent 741564dd48
commit df6687034a
3 changed files with 18 additions and 7 deletions

View file

@ -88,6 +88,7 @@ protected:
memset(connections, 0, sizeof(connections));
}
void bootstrapRTCfromContacts();
void resetContacts() { num_contacts = 0; }
void populateContactFromAdvert(ContactInfo& ci, const mesh::Identity& id, const AdvertDataParser& parser, uint32_t timestamp);
ContactInfo* allocateContactSlot(); // helper to find slot for new contact