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
+4 -4
View File
@@ -126,9 +126,7 @@ void per10ms()
#if defined(GUI)
if (lightOffCounter) lightOffCounter--;
if (flashCounter) flashCounter--;
#if defined(LIBOPENUI)
#warning "TODO remove noHighlightCounter on LIBOPENUI"
#else
#if !defined(LIBOPENUI)
if (noHighlightCounter) noHighlightCounter--;
#endif
#endif
@@ -1797,7 +1795,9 @@ void opentxInit()
#if defined(SDCARD)
// SDCARD related stuff, only done if not unexpectedShutdown
if (!globalData.unexpectedShutdown) {
sdInit();
if (!sdMounted())
sdInit();
#if defined(AUTOUPDATE)
sportStopSendByteLoop();