fix(bw): wait time in lcd init (#5501)
This commit is contained in:
@@ -276,8 +276,8 @@ void lcdInitFinish()
|
||||
*/
|
||||
|
||||
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||
// wait measured from the power-on
|
||||
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
|
||||
uint32_t end = timersGetMsTick() + RESET_WAIT_DELAY_MS;
|
||||
while (timersGetMsTick() < end);
|
||||
}
|
||||
|
||||
lcdStart();
|
||||
|
||||
@@ -389,8 +389,8 @@ void lcdInitFinish()
|
||||
*/
|
||||
|
||||
if (LCD_DELAY_NEEDED()) {
|
||||
// wait measured from the power-on
|
||||
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
|
||||
uint32_t end = timersGetMsTick() + RESET_WAIT_DELAY_MS;
|
||||
while (timersGetMsTick() < end);
|
||||
}
|
||||
|
||||
lcdStart();
|
||||
|
||||
Reference in New Issue
Block a user