mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 20:26:32 +00:00
Fix unwanted display interactions
Fix unwanted display interactions when no display is configured
This commit is contained in:
parent
9b35c54ed1
commit
0b944fddba
@ -1782,6 +1782,10 @@ void DisplayLocalSensor(void)
|
|||||||
void DisplayInitDriver(void)
|
void DisplayInitDriver(void)
|
||||||
{
|
{
|
||||||
XdspCall(FUNC_DISPLAY_INIT_DRIVER);
|
XdspCall(FUNC_DISPLAY_INIT_DRIVER);
|
||||||
|
|
||||||
|
// AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_DEBUG "Display model %d"), Settings->display_model);
|
||||||
|
|
||||||
|
if (Settings->display_model) {
|
||||||
ApplyDisplayDimmer();
|
ApplyDisplayDimmer();
|
||||||
|
|
||||||
#ifdef USE_MULTI_DISPLAY
|
#ifdef USE_MULTI_DISPLAY
|
||||||
@ -1811,9 +1815,6 @@ void DisplayInitDriver(void)
|
|||||||
for (uint8_t count = 0; count < NUM_GRAPHS; count++) { graph[count] = 0; }
|
for (uint8_t count = 0; count < NUM_GRAPHS; count++) { graph[count] = 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_DEBUG "Display model %d"), Settings->display_model);
|
|
||||||
|
|
||||||
if (Settings->display_model) {
|
|
||||||
TasmotaGlobal.devices_present++;
|
TasmotaGlobal.devices_present++;
|
||||||
if (!PinUsed(GPIO_BACKLIGHT)) {
|
if (!PinUsed(GPIO_BACKLIGHT)) {
|
||||||
if (TasmotaGlobal.light_type && (4 == Settings->display_model)) {
|
if (TasmotaGlobal.light_type && (4 == Settings->display_model)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user