diff options
author | Ruslan Sayfutdinov <ruslan@sayfutdinov.com> | 2022-12-08 16:45:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 03:45:30 +1100 |
commit | 85ee55ff3becd29e1590376c3462c6a99c976fa0 (patch) | |
tree | 36ab093ee44919070ac260f8aaf2770871d14910 /tmk_core/protocol/vusb | |
parent | e06f50c489e02068465dfb3e5b3c7473006e6273 (diff) |
Detect host OS based on USB fingerprint (#18463)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'tmk_core/protocol/vusb')
-rw-r--r-- | tmk_core/protocol/vusb/vusb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index 2d17761978..b3eeff9e01 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c @@ -44,6 +44,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. # include "ring_buffer.h" #endif +#ifdef OS_DETECTION_ENABLE +# include "os_detection.h" +#endif + #define NEXT_INTERFACE __COUNTER__ /* @@ -1013,6 +1017,9 @@ USB_PUBLIC usbMsgLen_t usbFunctionDescriptor(struct usbRequest *rq) { break; #endif } +#ifdef OS_DETECTION_ENABLE + process_wlength(rq->wLength.word); +#endif break; case USBDESCR_HID: switch (rq->wValue.bytes[0]) { |