fix boo-boo in code.

This commit is contained in:
Andrew J. Kroll 2013-06-09 15:44:08 -04:00
parent dfa140f237
commit 78526fb479

View file

@ -498,14 +498,8 @@ uint8_t BulkOnly::ClearEpHalt(uint8_t index) {
} }
uint8_t BulkOnly::Reset() { uint8_t BulkOnly::Reset() {
uint8_t r;
while (pUsb->ctrlReq(bAddress, 0, bmREQ_MASSOUT, MASS_REQ_BOMSR, 0, 0, bIface, 0, 0, NULL, NULL) == 0x01) delay(6); while (pUsb->ctrlReq(bAddress, 0, bmREQ_MASSOUT, MASS_REQ_BOMSR, 0, 0, bIface, 0, 0, NULL, NULL) == 0x01) delay(6);
#if 0 return 0;
if (r) {
printf("Reset error %2.2X\r\n", r);
}
#endif
return r;
} }
uint8_t BulkOnly::ResetRecovery() { uint8_t BulkOnly::ResetRecovery() {