mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* fixes for various targets (BaseChatMesh not compiling for non-terminal chat targets)
This commit is contained in:
parent
a3ce65c770
commit
40c3dfa20b
3 changed files with 22 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue