fix(bw): initial wait delay in SPI LCD (#5433)

This commit is contained in:
Raphael Coeffic
2024-08-15 10:21:50 +10:00
committed by GitHub
parent 839cfbd53c
commit fcd7ffda3c
2 changed files with 7 additions and 10 deletions
@@ -24,7 +24,9 @@
#include "board.h"
#include "lcd.h"
#include "hal/abnormal_reboot.h"
#include "timers_driver.h"
#if !defined(BOOT)
#include "myeeprom.h"
@@ -274,11 +276,8 @@ void lcdInitFinish()
*/
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
#if !defined(BOOT)
while (g_tmr10ms < (RESET_WAIT_DELAY_MS/10)); // Wait measured from the power-on
#else
delay_ms(RESET_WAIT_DELAY_MS);
#endif
// wait measured from the power-on
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
}
lcdStart();
+3 -5
View File
@@ -29,6 +29,7 @@
#include "lcd.h"
#include "hal/abnormal_reboot.h"
#include "timers_driver.h"
#if !defined(BOOT)
#include "edgetx.h"
@@ -388,11 +389,8 @@ void lcdInitFinish()
*/
if (LCD_DELAY_NEEDED()) {
#if !defined(BOOT)
while (g_tmr10ms < (RESET_WAIT_DELAY_MS / 10)); // wait measured from the power-on
#else
delay_ms(RESET_WAIT_DELAY_MS);
#endif
// wait measured from the power-on
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
}
lcdStart();