Display seconds only if not AM/PM.

This commit is contained in:
Blaz Kristan 2021-04-29 17:52:47 +02:00
parent 1a279d14c4
commit b56c1b956c
2 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ class FourLineDisplayUsermod : public Usermod {
if (fullScreen) { if (fullScreen) {
draw2x2String(TIME_INDENT+2, lineHeight*2, lineBuffer); draw2x2String(TIME_INDENT+2, lineHeight*2, lineBuffer);
sprintf_P(lineBuffer, PSTR("%02d"), secondCurrent); sprintf_P(lineBuffer, PSTR("%02d"), secondCurrent);
drawString(12, lineHeight*2+1, lineBuffer, true); // even with double sized rows print seconds in 1 line if (!useAMPM) drawString(12, lineHeight*2+1, lineBuffer, true); // even with double sized rows print seconds in 1 line
} else { } else {
drawString(9+(useAMPM?0:2), lineHeight*2, lineBuffer); drawString(9+(useAMPM?0:2), lineHeight*2, lineBuffer);
} }

View File

@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2104281 #define VERSION 2104291
//uncomment this if you have a "my_config.h" file you'd like to use //uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG //#define WLED_USE_MY_CONFIG