From d232298ddf71053bc565b0d15e7f88ccd4d11c4d Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Tue, 29 Jul 2025 09:12:56 +0800 Subject: [PATCH] update battery position --- GUI/GUI.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/GUI.c b/GUI/GUI.c index 107fe8a..f19eea6 100644 --- a/GUI/GUI.c +++ b/GUI/GUI.c @@ -211,8 +211,8 @@ static void DrawDateHeader(Adafruit_GFX *gfx, int16_t x, int16_t y, tm_t *tm, st GFX_printf(gfx, " [%s]", Lunar_ZodiacString[LUNAR_GetZodiac(Lunar)]); GFX_setTextColor(gfx, GFX_BLACK, GFX_WHITE); - DrawBattery(gfx, data->width - 10, 6, 20, data->voltage); - GFX_setCursor(gfx, data->width - GFX_getUTF8Width(gfx, "NRF_EPD_84AC") - 10, y); + DrawBattery(gfx, data->width - 10 - 2, 6, 20, data->voltage); + GFX_setCursor(gfx, data->width - GFX_getUTF8Width(gfx, data->ssid) - 10, y); GFX_printf(gfx, "%s", data->ssid); }