mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-04 19:26:19 +00:00
fix(messages): allow full-length text on the compose/send paths too
After widening the history buffers, the compose side was still the bottleneck: the keyboard capped input at 139 bytes and the quick-message expand buffers were 140. Raise KB_MAX_LEN to 160 (MeshCore's MAX_TEXT_LEN) and size the expand/compose buffers to MSG_TEXT_BUF, so a message can be typed, expanded, sent, stored and displayed at the full protocol length on every path. The custom-message editor now passes an explicit max bound to its 140-byte store, so the wider keyboard buffer can't overflow it; the bot editor already passed per-field maxima. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1589,9 +1589,9 @@ public:
|
||||
NodePrefs* p = _task->getNodePrefs();
|
||||
int slot = _active_msgs[_msg_sel - 1];
|
||||
const char* tmpl = p ? p->custom_msgs[slot] : "OK";
|
||||
char msg[140];
|
||||
char msg[MSG_TEXT_BUF];
|
||||
if (_reply_mode) {
|
||||
char body[140];
|
||||
char body[MSG_TEXT_BUF];
|
||||
expandMsg(tmpl, body, sizeof(body));
|
||||
snprintf(msg, sizeof(msg), "%s%s", _reply_prefix, body);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user