ArduinoCore-avr icon indicating copy to clipboard operation
ArduinoCore-avr copied to clipboard

Hardcoded timeout in USB_Send

Open Ryzee119 opened this issue 3 years ago • 1 comments
trafficstars

Here: u8 timeout = 250

250ms is quite large for my application. Could this be moved to a compile time define?

Perhaps something like this?

#ifndef USB_SEND_TIMEOUT
#define USB_SEND_TIMEOUT 250
#endif
- u8 timeout = 250;		 // 250ms timeout on send? TODO
+ u8 timeout = USB_SEND_TIMEOUT; // timeout on send? TODO

Ryzee119 avatar Jun 06 '22 03:06 Ryzee119

I raised a quick patch for this change https://github.com/arduino/ArduinoCore-avr/pull/479

Ryzee119 avatar Jun 06 '22 03:06 Ryzee119