From 7f2653a2ed96bd4d147f0407cb5d56a95c510c26 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Sun, 10 Mar 2024 19:19:08 +0100 Subject: [PATCH] Remove not needed async --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 87eb2ae..2c4ac88 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ static mut BOS_DESCRIPTOR_BUFFER: [u8; 256] = [0; 256]; static mut MSOS_DESCRIPTOR_BUFFER: [u8; 256] = [0; 256]; static mut CONTROL_BUFFER: [u8; 64] = [0; 64]; static mut STATE: Option> = None; -pub static mut USB: Option>> = None; +static mut USB: Option>> = None; bind_interrupts!(struct Irqs { USBCTRL_IRQ => InterruptHandler; @@ -33,7 +33,7 @@ pub struct Serial<'a> { } impl Serial<'static> { - pub async fn new( + pub fn new( usb: USB, serial_config: SerialConfig<'static>, ) -> (Serial<'static>, impl Future) {