From fa836349012987c0802a2d32fc493b87e4ce1e0c Mon Sep 17 00:00:00 2001 From: ardi69 Date: Thu, 11 Oct 2018 23:40:36 +0200 Subject: [PATCH] add forgotten function --- usbhub.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usbhub.h b/usbhub.h index 7c197dec..e938e2dc 100644 --- a/usbhub.h +++ b/usbhub.h @@ -201,7 +201,11 @@ public: return bAddress; }; - virtual bool DEVCLASSOK(uint8_t klass) { + virtual uint8_t GetPortAddress() { + return bPortAddress; + }; + + virtual bool DEVCLASSOK(uint8_t klass) { return (klass == 0x09); }