From 461a9b4d8e9f986c07b1690758c3ccf527dabc59 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 29 Jan 2021 13:11:08 +0100 Subject: [PATCH] usb-4: add note on how to switch to participant's USB parser the starter code uses the parser from the `usb2` crate because the code won't compile if it uses the workshop's `usb` in its initial form --- advanced/firmware/src/bin/usb-4.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/firmware/src/bin/usb-4.rs b/advanced/firmware/src/bin/usb-4.rs index 3b91a5d..f3a8402 100644 --- a/advanced/firmware/src/bin/usb-4.rs +++ b/advanced/firmware/src/bin/usb-4.rs @@ -7,7 +7,8 @@ use dk::{ }; use panic_log as _; // panic handler -// use one of these +// HEADS UP to use *your* USB packet parser uncomment this line and remove the `usb2::Request` +// use usb::Request; use usb2::{GetDescriptor as Descriptor, StandardRequest as Request, State}; #[rtic::app(device = dk)]