mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Merge branch 'xxxajk' of https://github.com/felis/USB_Host_Shield_2.0 into xxxajk
This commit is contained in:
commit
1d8af4a05c
2 changed files with 6 additions and 4 deletions
|
@ -318,8 +318,10 @@ 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
|
||||
LockMedia(lun, 1);
|
||||
MediaCTL(lun, 1); // I actually have a USB stick that needs this!
|
||||
if (tries > 2) {
|
||||
LockMedia(lun, 1);
|
||||
MediaCTL(lun, 1); // I actually have a USB stick that needs this!
|
||||
} else delay(2 * (tries + 1));
|
||||
tries++;
|
||||
if (!tries) break;
|
||||
}
|
||||
|
@ -389,7 +391,7 @@ FailSetDevTblEntry:
|
|||
goto Fail;
|
||||
#endif
|
||||
|
||||
FailGetConfDescr:
|
||||
FailGetConfDescr:
|
||||
#ifdef DEBUG
|
||||
NotifyFailGetConfDescr();
|
||||
#endif
|
||||
|
|
|
@ -18,7 +18,7 @@ e-mail : support@circuitsathome.com
|
|||
#define __MESSAGE_H__
|
||||
|
||||
// uncomment to activate
|
||||
#define DEBUG
|
||||
//#define DEBUG
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <avr/pgmspace.h>
|
||||
|
|
Loading…
Reference in a new issue