mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
fix(l2): no remount while the card is a USB drive, vector packs locked across cores, time zone list, noise sweep restore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -441,6 +441,10 @@ public:
|
||||
|
||||
int ellipsis_width = getTextWidth(ellipsis);
|
||||
int str_len = strlen(temp_str);
|
||||
// Room for the ellipsis whatever the trim below leaves (a near-full
|
||||
// buffer of narrow glyphs on a wide panel could keep all but one byte).
|
||||
const int room = (int)sizeof(temp_str) - 1 - (int)strlen(ellipsis);
|
||||
if (str_len > room) temp_str[str_len = room] = 0;
|
||||
|
||||
while (str_len > 0 && getTextWidth(temp_str) > max_width - ellipsis_width) {
|
||||
temp_str[--str_len] = 0;
|
||||
|
||||
Reference in New Issue
Block a user