forked from mirrors/qmk_userspace
Detect host OS based on USB fingerprint (#18463)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
parent
e06f50c489
commit
85ee55ff3b
15 changed files with 448 additions and 7 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue