From e4858bd0ef2f5d30fa57a502776575de4e9563ad Mon Sep 17 00:00:00 2001 From: "Andrew J. Kroll" Date: Thu, 6 Jun 2013 14:43:24 -0400 Subject: [PATCH] different logic --- masstorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masstorage.cpp b/masstorage.cpp index 82f88361..d5c50a57 100644 --- a/masstorage.cpp +++ b/masstorage.cpp @@ -318,7 +318,7 @@ uint8_t BulkOnly::Init(uint8_t parent, uint8_t port, bool lowspeed) { while (rcode = TestUnitReady(lun)) { if (rcode == 0x08) break; // break on no media, this is OK to do. // try to lock media and spin up - if (tries > 2) { + if (tries < 14) { LockMedia(lun, 1); MediaCTL(lun, 1); // I actually have a USB stick that needs this! } else delay(2 * (tries + 1));