mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
fix(diag): real heap-free via mallinfo, flush-align Errors row
sbrk(0)-high-water counted freed-and-recycled blocks as permanently used, understating free heap. mallinfo().uordblks reflects bytes actually outstanding. Also strip the trailing space from the decoded error-flag string so right-alignment sits flush. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -110,6 +110,8 @@ class DiagnosticsScreen : public UIScreen {
|
||||
if (err & ERR_EVENT_FULL) strcat(buf, "F ");
|
||||
if (err & ERR_EVENT_CAD_TIMEOUT) strcat(buf, "C ");
|
||||
if (err & ERR_EVENT_STARTRX_TIMEOUT) strcat(buf, "R ");
|
||||
int len = strlen(buf); // drop the trailing space so right-alignment sits flush
|
||||
if (len > 0 && buf[len - 1] == ' ') buf[len - 1] = '\0';
|
||||
}
|
||||
addRow("Errors", buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user