Skip to content

Commit

Permalink
Fix display model
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Dec 15, 2024
1 parent 6fbf8c5 commit b0c505d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasmota/tasmota_xdrv_driver/xdrv_13_display.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1853,9 +1853,9 @@ void DisplayLocalSensor(void)

void DisplayInitDriver(void) {
uint32_t display_model = Settings->display_model;
Settings->display_model = 0; // Test if any display_model is available
Settings->display_model = 0; // Test if any display_model is available
XdspCall(FUNC_DISPLAY_INIT_DRIVER);
if (Settings->display_model) { // If model found keep using user configured one for backward compatibility
if (Settings->display_model && display_model) { // If any model found keep using user configured one for backward compatibility
Settings->display_model = display_model;
}
if (!Settings->display_model) { return; }
Expand Down

0 comments on commit b0c505d

Please sign in to comment.