mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 02:06:11 +00:00
fix: increase quick-message expansion buffer from 80 to 140 bytes
custom_msgs templates are up to 140 chars; the 80-byte msg[] buffer silently truncated any message longer than 79 characters before sending. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
584ef33b3e
commit
9b61bc3028
@@ -1059,7 +1059,7 @@ public:
|
|||||||
NodePrefs* p = _task->getNodePrefs();
|
NodePrefs* p = _task->getNodePrefs();
|
||||||
int slot = _active_msgs[_msg_sel - 1];
|
int slot = _active_msgs[_msg_sel - 1];
|
||||||
const char* tmpl = p ? p->custom_msgs[slot] : "OK";
|
const char* tmpl = p ? p->custom_msgs[slot] : "OK";
|
||||||
char msg[80];
|
char msg[140];
|
||||||
expandMsg(tmpl, msg, sizeof(msg));
|
expandMsg(tmpl, msg, sizeof(msg));
|
||||||
bool ok = sendText(msg);
|
bool ok = sendText(msg);
|
||||||
afterSend(ok, msg);
|
afterSend(ok, msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user