From 5009a3fae9e23cb9e9935d91b78e97d9c8d5659b Mon Sep 17 00:00:00 2001 From: Ajith Vasudevan Date: Sun, 21 Feb 2021 11:07:12 +0530 Subject: [PATCH] Fixed bug where clock is disabled after a brightness change --- tasmota/xdsp_15_tm1637.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasmota/xdsp_15_tm1637.ino b/tasmota/xdsp_15_tm1637.ino index 57e087935..da64edb1a 100644 --- a/tasmota/xdsp_15_tm1637.ino +++ b/tasmota/xdsp_15_tm1637.ino @@ -784,6 +784,7 @@ bool CmndClock(void) { * refreshes the time if clock is displayed \*********************************************************************************************/ void showTime() { + AddLog(LOG_LEVEL_DEBUG, PSTR("LOG: %s: showTime()"), modelname); uint8_t hr = RtcTime.hour; uint8_t mn = RtcTime.minute; // uint8_t hr = 1; @@ -1027,17 +1028,17 @@ bool Xdsp15(uint8_t function) case FUNC_DISPLAY_FLOAT: case FUNC_DISPLAY_NUMBERNC: case FUNC_DISPLAY_FLOATNC: - case FUNC_DISPLAY_BRIGHTNESS: case FUNC_DISPLAY_RAW: case FUNC_DISPLAY_LEVEL: case FUNC_DISPLAY_SEVENSEG_TEXTNC: case FUNC_DISPLAY_SCROLLTEXT: case FUNC_DISPLAY_SCROLLDELAY: + case FUNC_DISPLAY_CLOCK: + showClock = false; + case FUNC_DISPLAY_BRIGHTNESS: case FUNC_DISPLAY_SETLEDS: case FUNC_DISPLAY_SETLED: case FUNC_DISPLAY_BUTTONS: - case FUNC_DISPLAY_CLOCK: - showClock = false; result = MainFunc(function); break; case FUNC_DISPLAY_EVERY_50_MSECOND: