Compare commits

...

1 commit

Author SHA1 Message Date
74abbd6588
hack: don't crash on unimplemented function 2024-03-14 10:21:44 +01:00

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) {
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) {