mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 18:26:11 +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:
co-authored by
Claude Sonnet 4.6
parent
6a7f8b7ca7
commit
b91afa05b9
@@ -2844,9 +2844,9 @@ void UITask::loop() {
|
|||||||
if (low_mv > 0 && _batt_mv > 0 && _batt_mv < low_mv) {
|
if (low_mv > 0 && _batt_mv > 0 && _batt_mv < low_mv) {
|
||||||
if (_display != NULL) {
|
if (_display != NULL) {
|
||||||
_display->startFrame();
|
_display->startFrame();
|
||||||
_display->setTextSize(2);
|
_display->setTextSize(1);
|
||||||
_display->setColor(DisplayDriver::LIGHT);
|
_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->drawTextCentered(_display->width() / 2, 36, "Shutting down");
|
||||||
_display->endFrame();
|
_display->endFrame();
|
||||||
delay(2000);
|
delay(2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user