mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Fixed bug where clock is disabled after a brightness change
This commit is contained in:
parent
b05790083d
commit
5009a3fae9
@ -784,6 +784,7 @@ bool CmndClock(void) {
|
|||||||
* refreshes the time if clock is displayed
|
* refreshes the time if clock is displayed
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
void showTime() {
|
void showTime() {
|
||||||
|
AddLog(LOG_LEVEL_DEBUG, PSTR("LOG: %s: showTime()"), modelname);
|
||||||
uint8_t hr = RtcTime.hour;
|
uint8_t hr = RtcTime.hour;
|
||||||
uint8_t mn = RtcTime.minute;
|
uint8_t mn = RtcTime.minute;
|
||||||
// uint8_t hr = 1;
|
// uint8_t hr = 1;
|
||||||
@ -1027,17 +1028,17 @@ bool Xdsp15(uint8_t function)
|
|||||||
case FUNC_DISPLAY_FLOAT:
|
case FUNC_DISPLAY_FLOAT:
|
||||||
case FUNC_DISPLAY_NUMBERNC:
|
case FUNC_DISPLAY_NUMBERNC:
|
||||||
case FUNC_DISPLAY_FLOATNC:
|
case FUNC_DISPLAY_FLOATNC:
|
||||||
case FUNC_DISPLAY_BRIGHTNESS:
|
|
||||||
case FUNC_DISPLAY_RAW:
|
case FUNC_DISPLAY_RAW:
|
||||||
case FUNC_DISPLAY_LEVEL:
|
case FUNC_DISPLAY_LEVEL:
|
||||||
case FUNC_DISPLAY_SEVENSEG_TEXTNC:
|
case FUNC_DISPLAY_SEVENSEG_TEXTNC:
|
||||||
case FUNC_DISPLAY_SCROLLTEXT:
|
case FUNC_DISPLAY_SCROLLTEXT:
|
||||||
case FUNC_DISPLAY_SCROLLDELAY:
|
case FUNC_DISPLAY_SCROLLDELAY:
|
||||||
|
case FUNC_DISPLAY_CLOCK:
|
||||||
|
showClock = false;
|
||||||
|
case FUNC_DISPLAY_BRIGHTNESS:
|
||||||
case FUNC_DISPLAY_SETLEDS:
|
case FUNC_DISPLAY_SETLEDS:
|
||||||
case FUNC_DISPLAY_SETLED:
|
case FUNC_DISPLAY_SETLED:
|
||||||
case FUNC_DISPLAY_BUTTONS:
|
case FUNC_DISPLAY_BUTTONS:
|
||||||
case FUNC_DISPLAY_CLOCK:
|
|
||||||
showClock = false;
|
|
||||||
result = MainFunc(function);
|
result = MainFunc(function);
|
||||||
break;
|
break;
|
||||||
case FUNC_DISPLAY_EVERY_50_MSECOND:
|
case FUNC_DISPLAY_EVERY_50_MSECOND:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user