mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-10-31 22:28:49 +00:00
re coments: move TODO instructions in usb-2
This commit is contained in:
parent
f2cc43b55f
commit
c3d680e76d
1 changed files with 3 additions and 1 deletions
|
@ -60,13 +60,15 @@ fn on_event(_usbd: &USBD, event: Event) {
|
|||
wvalue
|
||||
);
|
||||
|
||||
// TODO modify `advanced/common/usb` to make this work
|
||||
let request = Request::parse(bmrequesttype, brequest, wvalue, windex, wlength)
|
||||
.expect("Error parsing request");
|
||||
match request {
|
||||
Request::GetDescriptor { descriptor, length }
|
||||
if descriptor == Descriptor::Device =>
|
||||
{
|
||||
// TODO modify `Request::parse()` in `advanced/common/usb/lib.rs`
|
||||
// so that this branch is reached
|
||||
|
||||
log::info!("GET_DESCRIPTOR Device [length={}]", length);
|
||||
|
||||
log::info!("Goal reached; move to the next section");
|
||||
|
|
Loading…
Reference in a new issue