Use millis_t where needed (#12152)
This commit is contained in:
1 parent
b641571098
commit
44369d536a
6 files changed
+17
-15
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user