diff --git a/src/main.rs b/src/main.rs index 2f3dafb2b949e9b8481deb9a641275f74d1e178f..e6d80d371cd3d8c784fadca81b37d12eed76e65a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,6 +191,7 @@ mod app { hclk: clocks.hclk(), }; unsafe { + #[allow(static_mut_refs)] USB_BUS.replace(UsbBus::new(usb, &mut EP_MEMORY)); }