From 74abbd658883f377998ed2a42c5f6f75f40c50bb Mon Sep 17 00:00:00 2001 From: Naxdy Date: Thu, 14 Mar 2024 10:21:44 +0100 Subject: [PATCH] hack: don't crash on unimplemented function --- embassy-rp/src/usb.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/embassy-rp/src/usb.rs b/embassy-rp/src/usb.rs index 905661d64..2ebbe67be 100644 --- a/embassy-rp/src/usb.rs +++ b/embassy-rp/src/usb.rs @@ -414,11 +414,12 @@ impl<'d, T: Instance> driver::Bus for Bus<'d, T> { } fn endpoint_set_stalled(&mut self, _ep_addr: EndpointAddress, _stalled: bool) { - todo!(); + warn!("Call to unsupported function 'endpoint_set_stalled'"); } fn endpoint_is_stalled(&mut self, _ep_addr: EndpointAddress) -> bool { - todo!(); + warn!("Call to unsupported function 'endpoint_is_stalled'"); + return false; } fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool) {