mirror of
https://github.com/italicsjenga/usbd-midi.git
synced 2024-12-23 12:21:30 +11:00
Remove unneeded and misleading pin mapping
This commit is contained in:
parent
0dfe89da04
commit
cb385c8974
|
@ -4,7 +4,7 @@ use crate::data::usb::constants::*;
|
|||
use crate::data::usb_midi::usb_midi_event_packet::{UsbMidiEventPacket, MidiPacketParsingError};
|
||||
|
||||
const MIDI_IN_SIZE: u8 = 0x06;
|
||||
const MIDI_OUT_SIZE: u8 = 0x09;
|
||||
const MIDI_OUT_SIZE: u8 = 0x07;
|
||||
|
||||
pub const MIDI_PACKET_SIZE: usize = 4;
|
||||
pub const MAX_PACKET_SIZE: usize = 64;
|
||||
|
@ -133,9 +133,7 @@ impl<B: UsbBus> UsbClass<B> for MidiClass<'_, B> {
|
|||
MIDI_OUT_JACK_SUBTYPE,
|
||||
EMBEDDED,
|
||||
self.out_jack_id(i), //id
|
||||
0x01, // 1 pin
|
||||
self.in_jack_id(i), // pin 1
|
||||
0x01, //sorta vague source pin?
|
||||
0x00, // no pins
|
||||
0x00
|
||||
]
|
||||
)?;
|
||||
|
|
Loading…
Reference in a new issue