Small fixes

- no double SD card init
- removed "noHighlightCounter" warning
- wipe the screen buffers before setting up the layer (removes shadow image on boot)
This commit is contained in:
Raphael Coeffic
2021-05-09 11:02:57 +02:00
parent 6956398a50
commit cc5ae4d2a9
6 changed files with 8 additions and 16 deletions
+2 -2
View File
@@ -366,13 +366,13 @@ void lcdInit()
LTDC_Cmd(ENABLE);
/* Set Background layer */
memset(LCD_FIRST_FRAME_BUFFER, 0, sizeof(LCD_FIRST_FRAME_BUFFER));
LCD_SetLayer(LCD_FIRST_LAYER);
// lcdClear();
LCD_SetTransparency(0);
/* Set Foreground layer */
memset(LCD_SECOND_FRAME_BUFFER, 0, sizeof(LCD_SECOND_FRAME_BUFFER));
LCD_SetLayer(LCD_SECOND_LAYER);
lcd->clear();
LCD_SetTransparency(255);
}