Compare commits
5
Commits
test
...
ae466a8aad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae466a8aad | ||
|
|
21fcb661f1 | ||
|
|
29e5edde8a | ||
|
|
137fcc78e5 | ||
|
|
5ac1a07c6b |
+2
-2
@@ -46,8 +46,8 @@ impl<const L: usize> UsbBus for UsbDevice<L> {
|
|||||||
.find(|(index, ep)| {
|
.find(|(index, ep)| {
|
||||||
!ep.is_allocated && max_packet_size <= ENDPOINTS_ALLOC_LAYOUT[*index]
|
!ep.is_allocated && max_packet_size <= ENDPOINTS_ALLOC_LAYOUT[*index]
|
||||||
})
|
})
|
||||||
.ok_or(UsbError::EndpointOverflow)?
|
.map(|(index, _)| index)
|
||||||
.0;
|
.ok_or(UsbError::EndpointOverflow)?;
|
||||||
|
|
||||||
EndpointAddress::from_parts(index, ep_dir)
|
EndpointAddress::from_parts(index, ep_dir)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user