* fixes for various targets (BaseChatMesh not compiling for non-terminal chat targets)

This commit is contained in:
Scott Powell
2025-01-26 15:40:32 +11:00
parent a3ce65c770
commit 40c3dfa20b
3 changed files with 22 additions and 2 deletions

View File

@@ -23,7 +23,8 @@ bool IdentityStore::load(const char *name, mesh::LocalIdentity& id, char display
if (file) {
loaded = id.readFrom(file);
int n = min(32, max_name_sz); // up to 32 bytes
int n = max_name_sz; // up to 32 bytes
if (n > 32) n = 32;
file.read((uint8_t *) display_name, n);
display_name[n - 1] = 0; // ensure null terminator