mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 04:15:53 +00:00
Add AM/PM to low resolution clock also
This commit is contained in:
parent
653f6c2a85
commit
54fa39b2e9
@ -381,11 +381,7 @@ void drawAnalogClockFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
||||
if (config.display.use_12h_clock) {
|
||||
bool isPM = hour >= 12;
|
||||
display->setFont(FONT_SMALL);
|
||||
#ifndef T_WATCH_S3
|
||||
if (isHighResolution) {
|
||||
display->drawString(centerX - (display->getStringWidth(isPM ? "pm" : "am") / 2), centerY - 2, isPM ? "pm" : "am");
|
||||
}
|
||||
#endif
|
||||
display->drawString(centerX - (display->getStringWidth(isPM ? "pm" : "am") / 2), centerY - 2, isPM ? "pm" : "am");
|
||||
}
|
||||
hour %= 12;
|
||||
if (hour == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user