mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check subclasses during enumeration
This commit is contained in:
parent
f2bfe0671e
commit
2224dd96cb
2 changed files with 2 additions and 1 deletions
|
@ -246,7 +246,7 @@ uint8_t FTDI::Release() {
|
|||
bNumEP = 1;
|
||||
qNextPollTime = 0;
|
||||
bPollEnable = false;
|
||||
return 0;
|
||||
return pAsync->OnRelease(this);
|
||||
}
|
||||
|
||||
uint8_t FTDI::Poll() {
|
||||
|
|
|
@ -79,6 +79,7 @@ class FTDI;
|
|||
class FTDIAsyncOper {
|
||||
public:
|
||||
virtual uint8_t OnInit(FTDI *pftdi) = 0;
|
||||
virtual uint8_t OnRelease(FTDI *pftdi) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue