File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,9 @@ bool Adafruit_USBH_Host::begin(uint8_t rhport) {
121
121
return tuh_init (rhport);
122
122
}
123
123
124
- void Adafruit_USBH_Host::task (void ) { tuh_task (); }
124
+ void Adafruit_USBH_Host::task (uint32_t timeout_ms, bool in_isr) {
125
+ tuh_task_ext (timeout_ms, in_isr);
126
+ }
125
127
126
128
// Invoked when device with hid interface is mounted
127
129
// Report descriptor is also available for use.
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class Adafruit_USBH_Host {
69
69
#endif
70
70
71
71
bool begin (uint8_t rhport);
72
- void task (void );
72
+ void task (uint32_t timeout_ms = UINT32_MAX, bool in_isr = false );
73
73
74
74
// ------------- internal usage -------------//
75
75
static Adafruit_USBH_Host *_instance;
You can’t perform that action at this time.
0 commit comments