hack: don't crash on unimplemented function

This commit is contained in:
Naxdy 2024-03-14 10:21:44 +01:00
parent 4c23f197b3
commit 74abbd6588
No known key found for this signature in database
GPG key ID: C0437AAE9755550F

View file

@ -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) { 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 { 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) { fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool) {