Merge official v1.16.0 firmware and resolve conflicts

Этот коммит содержится в:
Valentin V. Bartenev
2026-06-06 21:55:43 +03:00
родитель 7635634f87 07a3ca9e05
Коммит 6aef34567e
366 изменённых файлов: 6855 добавлений и 3111 удалений
+5 -1
Просмотреть файл
@@ -341,7 +341,7 @@ File file = openRead(_getContactsChannelsFS(), "/contacts3");
}
}
void DataStore::saveContacts(DataStoreHost* host) {
void DataStore::saveContacts(DataStoreHost* host, bool (*filter)(const ContactInfo& c)) {
File file = openWrite(_getContactsChannelsFS(), "/contacts3");
if (file) {
uint32_t idx = 0;
@@ -349,6 +349,10 @@ void DataStore::saveContacts(DataStoreHost* host) {
uint8_t unused = 0;
while (host->getContactForSave(idx, c)) {
if (filter && !filter(c)) {
idx++; // advance to next contact
continue;
}
bool success = (file.write(c.id.pub_key, 32) == 32);
success = success && (file.write((uint8_t *)&c.name, 32) == 32);
success = success && (file.write(&c.type, 1) == 1);