mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
different logic
This commit is contained in:
parent
1d8af4a05c
commit
e4858bd0ef
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ uint8_t BulkOnly::Init(uint8_t parent, uint8_t port, bool lowspeed) {
|
||||||
while (rcode = TestUnitReady(lun)) {
|
while (rcode = TestUnitReady(lun)) {
|
||||||
if (rcode == 0x08) break; // break on no media, this is OK to do.
|
if (rcode == 0x08) break; // break on no media, this is OK to do.
|
||||||
// try to lock media and spin up
|
// try to lock media and spin up
|
||||||
if (tries > 2) {
|
if (tries < 14) {
|
||||||
LockMedia(lun, 1);
|
LockMedia(lun, 1);
|
||||||
MediaCTL(lun, 1); // I actually have a USB stick that needs this!
|
MediaCTL(lun, 1); // I actually have a USB stick that needs this!
|
||||||
} else delay(2 * (tries + 1));
|
} else delay(2 * (tries + 1));
|
||||||
|
|
Loading…
Reference in a new issue