mirror of
https://github.com/italicsjenga/usbd-midi.git
synced 2025-01-10 04:11:30 +11:00
Fix > vs >= bug
This commit is contained in:
parent
cb385c8974
commit
57f69e3a7f
|
@ -34,7 +34,7 @@ impl<B: UsbBus> MidiClass<'_, B> {
|
||||||
/// depending on the terminology).
|
/// depending on the terminology).
|
||||||
/// Note that a maximum of 16 in and 16 out jacks are supported.
|
/// Note that a maximum of 16 in and 16 out jacks are supported.
|
||||||
pub fn new(alloc: &UsbBusAllocator<B>, n_in_jacks: u8, n_out_jacks: u8) -> core::result::Result<MidiClass<'_, B>, InvalidArguments> {
|
pub fn new(alloc: &UsbBusAllocator<B>, n_in_jacks: u8, n_out_jacks: u8) -> core::result::Result<MidiClass<'_, B>, InvalidArguments> {
|
||||||
if n_in_jacks >= 16 || n_out_jacks >= 16 {
|
if n_in_jacks > 16 || n_out_jacks > 16 {
|
||||||
return Err(InvalidArguments);
|
return Err(InvalidArguments);
|
||||||
}
|
}
|
||||||
Ok(MidiClass {
|
Ok(MidiClass {
|
||||||
|
|
Loading…
Reference in a new issue