Mercurial > public > ostc4
diff Discovery/Src/gfx_engine.c @ 885:8d3f3a635397 Evo_2_23
Replaced global hardwareDisplay with unit access:
The previous global hardwaredisplay, which indicated the display version, is stored in scope of ostc.c with interface function access.
author | Ideenmodellierer |
---|---|
date | Sun, 01 Sep 2024 21:35:50 +0200 |
parents | 940f8e132638 |
children |
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c Sun Sep 01 20:31:01 2024 +0200 +++ b/Discovery/Src/gfx_engine.c Sun Sep 01 21:35:50 2024 +0200 @@ -3392,14 +3392,14 @@ void GFX_LTDC_Init(void) { - if (hardwareDisplay == 1) - { + if (isNewDisplay()) + { GFX_LTDC_Init_display1(); - } - else - { + } + else + { GFX_LTDC_Init_display0(); - } + } } void GFX_LTDC_Init_display0(void)