From 4a44c8f0392926c75ec539c7bc8d1f44c1b95b17 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Tue, 1 Jul 2014 13:17:56 +0200 Subject: [PATCH] Implemented VIDPIDOK in PS4USB --- PS4USB.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PS4USB.h b/PS4USB.h index ea38455a..16dabad4 100644 --- a/PS4USB.h +++ b/PS4USB.h @@ -112,6 +112,18 @@ protected: }; /**@}*/ + /** @name USBDeviceConfig implementation */ + /** + * Used by the USB core to check what this driver support. + * @param vid The device's VID. + * @param pid The device's PID. + * @return Returns true if the device's VID and PID matches this driver. + */ + virtual boolean VIDPIDOK(uint16_t vid, uint16_t pid) { + return (vid == PS4_VID && pid == PS4_PID); + }; + /**@}*/ + private: void (*pFuncOnInit)(void); // Pointer to function called in onInit() };