update battery position

This commit is contained in:
Shuanglei Tao
2025-07-29 09:12:56 +08:00
parent 25c5288bd7
commit d232298ddf

View File

@@ -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);
}