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()) {
|
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||||
// wait measured from the power-on
|
uint32_t end = timersGetMsTick() + RESET_WAIT_DELAY_MS;
|
||||||
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
|
while (timersGetMsTick() < end);
|
||||||
}
|
}
|
||||||
|
|
||||||
lcdStart();
|
lcdStart();
|
||||||
|
|||||||
@@ -389,8 +389,8 @@ void lcdInitFinish()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (LCD_DELAY_NEEDED()) {
|
if (LCD_DELAY_NEEDED()) {
|
||||||
// wait measured from the power-on
|
uint32_t end = timersGetMsTick() + RESET_WAIT_DELAY_MS;
|
||||||
while (timersGetMsTick() < RESET_WAIT_DELAY_MS);
|
while (timersGetMsTick() < end);
|
||||||
}
|
}
|
||||||
|
|
||||||
lcdStart();
|
lcdStart();
|
||||||
|
|||||||
Reference in New Issue
Block a user