* companion: fix for CMD_IMPORT_PRIVATE_KEY, to re-calc shared secrets

이 커밋은 다음에 포함됨:
Scott Powell
2025-07-30 16:00:47 +10:00
부모 f66d900ae2
커밋 f87e856347
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
+4
파일 보기
@@ -661,6 +661,7 @@ void MyMesh::begin(bool has_display) {
_active_ble_pin = 0;
#endif
resetContacts();
_store->loadContacts(this);
addChannel("Public", PUBLIC_GROUP_PSK); // pre-configure Andy's public channel
_store->loadChannels(this);
@@ -1097,6 +1098,9 @@ void MyMesh::handleCmdFrame(size_t len) {
if (_store->saveMainIdentity(identity)) {
self_id = identity;
writeOKFrame();
// re-load contacts, to recalc shared secrets
resetContacts();
_store->loadContacts(this);
} else {
writeErrFrame(ERR_CODE_FILE_IO_ERROR);
}