mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user