From 79d01f85719ab20ec5ff500383e894aacff30c69 Mon Sep 17 00:00:00 2001 From: doryan Date: Mon, 28 Apr 2025 18:49:26 +0300 Subject: [PATCH] revert c4686aafc41d0627609ed42536a2f9b5922c4a1f revert feat(api): add plug_in_detection --- src/types/usb_device.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/types/usb_device.rs b/src/types/usb_device.rs index 89d98a7..6e6a4c4 100644 --- a/src/types/usb_device.rs +++ b/src/types/usb_device.rs @@ -98,10 +98,7 @@ impl UsbDevice { UsbBusAllocator::new(self) } - #[inline(always)] - pub fn plug_in_detect(&self, cs: CriticalSection<'_>) -> bool { - self.usb.borrow(cs).usbsta.read().vbus().bit_is_set() - } + #[inline] #[inline(always)] pub(crate) fn allocated_endpoints(&self) -> impl Iterator {