chrome.hid.send fails on second use

前端 未结 1 1363
借酒劲吻你
借酒劲吻你 2021-01-27 04:35

Something about my use of chrome.hid.send seems to be leaving the bus in a bad state. I consistently can NOT get my second usage of the API call to work. Sometime

相关标签:
1条回答
  • 2021-01-27 04:45

    The issue is that Windows requires buffers to be the full report size expected by the device. I have filed a bug against Chromium to track adding a workaround or at least a better error message to pinpoint the problem.

    In general you can get more detailed error messages from the chrome.hid API by enabling verbose logging with the --enable-logging --v=1 command line options. Full documentation of Chrome logging is here.

    0 讨论(0)
提交回复
热议问题