aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-02-18 17:26:33 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-02-18 18:31:08 +0100
commitbaa0cd682aa219c4e16c6a7a8c3143931754ee01 (patch)
tree90ebc717abdefc00fdda948004ec44e96e303d2d /src/util.rs
parent6ef3740665e3b0ec4e466dc2e4b23900700b2ab3 (diff)
downloadntw-baa0cd682aa219c4e16c6a7a8c3143931754ee01.tar.gz
ntw-baa0cd682aa219c4e16c6a7a8c3143931754ee01.tar.bz2
Simplify handling of GET_DESCRIPTOR requests
Previously, we used the ControlIn::accept method and copied the generated buffer returned by HidDevice::report_descriptor to the buffer provided by usb_device::UsbClass in get_report_descriptor. But it is easier to directly pass the returned buffer to ControlIn::accept_with, so we drop the get_report_descriptor method.
Diffstat (limited to 'src/util.rs')
0 files changed, 0 insertions, 0 deletions