From b56c1b956c0c83b5f4422728de910089fa3565be Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 29 Apr 2021 17:52:47 +0200 Subject: [PATCH] Display seconds only if not AM/PM. --- .../usermod_v2_four_line_display/usermod_v2_four_line_display.h | 2 +- wled00/wled.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h b/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h index 0e77a49ed..1f6f2555d 100644 --- a/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h +++ b/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h @@ -533,7 +533,7 @@ class FourLineDisplayUsermod : public Usermod { if (fullScreen) { draw2x2String(TIME_INDENT+2, lineHeight*2, lineBuffer); 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 { drawString(9+(useAMPM?0:2), lineHeight*2, lineBuffer); } diff --git a/wled00/wled.h b/wled00/wled.h index a0b82cf30..23aa57378 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // 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 //#define WLED_USE_MY_CONFIG