From b91afa05b9d3815ebb525f450c8368a96d3e6386 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sat, 16 May 2026 17:47:22 +0200 Subject: [PATCH] fix: reduce low battery shutdown text size to fit 128px OLED Size 2 rendered text wider than display width. Switched to size 1 and adjusted y-positions to keep both lines visible. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/UITask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index 7a34fdb2..c3316809 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -2844,9 +2844,9 @@ void UITask::loop() { if (low_mv > 0 && _batt_mv > 0 && _batt_mv < low_mv) { if (_display != NULL) { _display->startFrame(); - _display->setTextSize(2); + _display->setTextSize(1); _display->setColor(DisplayDriver::LIGHT); - _display->drawTextCentered(_display->width() / 2, 16, "Low Battery"); + _display->drawTextCentered(_display->width() / 2, 24, "Low Battery"); _display->drawTextCentered(_display->width() / 2, 36, "Shutting down"); _display->endFrame(); delay(2000);