Use millis_t where needed (#12152)

This commit is contained in:
Ludy
2018-10-21 06:21:27 +02:00
committed by Scott Lahteine
parent b641571098
commit 44369d536a
6 changed files with 17 additions and 15 deletions

View File

@ -50,7 +50,7 @@ void Sd2Card::idle() {
state = USB_HOST_WAITING;
break;
case USB_HOST_WAITING:
if (millis() > next_retry) {
if (ELAPSED(millis(), next_retry)) {
next_retry = millis() + 10000;
state = USB_HOST_UNINITIALIZED;
}