Skip to content

Commit

Permalink
reduce transfer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDeadman committed Jan 14, 2024
1 parent adbea31 commit d9051b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UsbCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ typedef MAX3421e<P20, P19> MAX3421E; // Balanduino
#define USB_ERROR_FailGetConfDescr 0xE3
#define USB_ERROR_TRANSFER_TIMEOUT 0xFF

#define USB_XFER_TIMEOUT 10000 //30000 // (5000) USB transfer timeout in milliseconds, per section 9.2.6.1 of USB 2.0 spec
#define USB_XFER_TIMEOUT 1000 //30000 // (5000) USB transfer timeout in milliseconds, per section 9.2.6.1 of USB 2.0 spec
//#define USB_NAK_LIMIT 32000 //NAK limit for a transfer. 0 means NAKs are not counted
#define USB_RETRY_LIMIT 3 // 3 retry limit for a transfer
#define USB_SETTLE_DELAY 200 //settle delay in milliseconds
Expand Down

0 comments on commit d9051b6

Please sign in to comment.