hack: don't crash on unimplemented function
This commit is contained in:
parent
4c23f197b3
commit
74abbd6588
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue