Fix bootloader display init order
This commit is contained in:
committed by
Raphael Coeffic
parent
479e8ad244
commit
8681d5aa3e
@@ -269,10 +269,6 @@ void bootloaderInitApp()
|
||||
|
||||
TRACE("\nBootloader started :)");
|
||||
|
||||
lcdInit();
|
||||
backlightInit();
|
||||
backlightFullOn();
|
||||
|
||||
#if defined(BLUETOOTH)
|
||||
// we shutdown the bluetooth module now to be sure it will be detected on firmware start
|
||||
bluetoothInit(BLUETOOTH_DEFAULT_BAUDRATE, false);
|
||||
|
||||
@@ -53,8 +53,12 @@ extern BitmapBuffer * lcd;
|
||||
|
||||
void bootloaderInitScreen()
|
||||
{
|
||||
backlightEnable(BACKLIGHT_LEVEL_MAX);
|
||||
// Init display first
|
||||
lcdInitDisplayDriver();
|
||||
|
||||
// then backlight
|
||||
backlightInit();
|
||||
backlightEnable(BACKLIGHT_LEVEL_MAX);
|
||||
}
|
||||
|
||||
static void bootloaderDrawTitle(unsigned int x, const char* text)
|
||||
|
||||
@@ -58,8 +58,12 @@ extern BitmapBuffer * lcd;
|
||||
|
||||
void bootloaderInitScreen()
|
||||
{
|
||||
backlightEnable(BACKLIGHT_LEVEL_MAX);
|
||||
// Init display first
|
||||
lcdInitDisplayDriver();
|
||||
|
||||
// then backlight
|
||||
backlightInit();
|
||||
backlightEnable(BACKLIGHT_LEVEL_MAX);
|
||||
}
|
||||
|
||||
static void bootloaderDrawTitle(const char* text)
|
||||
|
||||
@@ -32,7 +32,11 @@ extern MemoryType memoryType;
|
||||
|
||||
void bootloaderInitScreen()
|
||||
{
|
||||
lcdInit();
|
||||
lcdSetContrast(true);
|
||||
|
||||
backlightInit();
|
||||
backlightFullOn();
|
||||
}
|
||||
|
||||
static void bootloaderDrawMsg(unsigned int x, const char *str, uint8_t line, bool inverted)
|
||||
|
||||
Reference in New Issue
Block a user