Check subclasses during enumeration

This commit is contained in:
Andrew J. Kroll 2014-08-04 08:47:15 -04:00
parent f2bfe0671e
commit 2224dd96cb
2 changed files with 2 additions and 1 deletions

View file

@ -246,7 +246,7 @@ uint8_t FTDI::Release() {
bNumEP = 1; bNumEP = 1;
qNextPollTime = 0; qNextPollTime = 0;
bPollEnable = false; bPollEnable = false;
return 0; return pAsync->OnRelease(this);
} }
uint8_t FTDI::Poll() { uint8_t FTDI::Poll() {

View file

@ -79,6 +79,7 @@ class FTDI;
class FTDIAsyncOper { class FTDIAsyncOper {
public: public:
virtual uint8_t OnInit(FTDI *pftdi) = 0; virtual uint8_t OnInit(FTDI *pftdi) = 0;
virtual uint8_t OnRelease(FTDI *pftdi) = 0;
}; };