fix(bw): initial wait delay in SPI LCD (#5433)
This commit is contained in:
@@ -24,7 +24,9 @@
|
|||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
#include "hal/abnormal_reboot.h"
|
#include "hal/abnormal_reboot.h"
|
||||||
|
#include "timers_driver.h"
|
||||||
|
|
||||||
#if !defined(BOOT)
|
#if !defined(BOOT)
|
||||||
#include "myeeprom.h"
|
#include "myeeprom.h"
|
||||||
@@ -274,11 +276,8 @@ void lcdInitFinish()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||||
#if !defined(BOOT)
|
// wait measured from the power-on
|
||||||
while (g_tmr10ms < (RESET_WAIT_DELAY_MS/10)); // Wait measured from the power-on
|
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
|
||||||
#else
|
|
||||||
delay_ms(RESET_WAIT_DELAY_MS);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lcdStart();
|
lcdStart();
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
#include "hal/abnormal_reboot.h"
|
#include "hal/abnormal_reboot.h"
|
||||||
|
#include "timers_driver.h"
|
||||||
|
|
||||||
#if !defined(BOOT)
|
#if !defined(BOOT)
|
||||||
#include "edgetx.h"
|
#include "edgetx.h"
|
||||||
@@ -388,11 +389,8 @@ void lcdInitFinish()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (LCD_DELAY_NEEDED()) {
|
if (LCD_DELAY_NEEDED()) {
|
||||||
#if !defined(BOOT)
|
// wait measured from the power-on
|
||||||
while (g_tmr10ms < (RESET_WAIT_DELAY_MS / 10)); // wait measured from the power-on
|
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
|
||||||
#else
|
|
||||||
delay_ms(RESET_WAIT_DELAY_MS);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lcdStart();
|
lcdStart();
|
||||||
|
|||||||
Reference in New Issue
Block a user