fix(bw): wait time in lcd init (#5501)

This commit is contained in:
3djc
2024-09-04 12:03:33 +10:00
committed by GitHub
parent a35246b5fa
commit fbac39e96f
2 changed files with 4 additions and 4 deletions
@@ -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();
+2 -2
View File
@@ -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();