Fix display model

This commit is contained in:
Theo Arends 2024-12-15 12:38:26 +01:00
parent 6fbf8c58f7
commit b0c505d171
1 changed files with 2 additions and 2 deletions

View File

@ -1855,7 +1855,7 @@ void DisplayInitDriver(void) {
uint32_t display_model = Settings->display_model; 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); 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; Settings->display_model = display_model;
} }
if (!Settings->display_model) { return; } if (!Settings->display_model) { return; }