diff options
| author | Luke Hoersten <[email protected]> | 2026-07-15 19:41:41 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-15 19:41:41 -0500 |
| commit | 739e6ff1afe6b5b80cc28afa19aa4b1b42282765 (patch) | |
| tree | ebcf559a742f04ed0aefda57dc996b45feba52a8 | |
| parent | abcc844a5a5251b28c1f7a4f7cc30ec29119c9fc (diff) | |
screens: raise INFO_MAX_LINES 16 -> 20 (temp line was silently dropped)
The info overlay already had exactly 16 ADD lines; the temp line
added in f59cea3 was the 17th, and the ADD macro's bounds guard
drops overflow lines without any diagnostic — so temp never
rendered. Give the cap headroom and document the silent-drop
behavior at the definition.
| -rw-r--r-- | main/local_screens.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/local_screens.c b/main/local_screens.c index 751ac91..1277d00 100644 --- a/main/local_screens.c +++ b/main/local_screens.c @@ -74,7 +74,9 @@ static const uint8_t FONT[95][8] = { #define FG 0xFFFF // white #define BG 0x0000 // black -#define INFO_MAX_LINES 16 +#define INFO_MAX_LINES 20 // headroom over the current 17 ADDs — the ADD + // macro SILENTLY drops lines past this cap + // (bit us when temp made it exactly 17) #define INFO_LINE_BYTES 80 // generous: viewport_name is 64 chars max static uint16_t *s_fb; // PSRAM scratch at PANEL_W × PANEL_H |
