Skip to content

Commit

Permalink
README example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcebox committed Dec 21, 2024
1 parent 8c4a17b commit c74e948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ loop {
let buffer_reader = MidiPacketBufferReader::new(&buffer, size);
for packet in buffer_reader.into_iter() {
if let Ok(packet) = packet {
match packet.message {
match Message::try_from(&packet).unwrap() {
Message::NoteOn(Channel1, Note::C2, ..) => {
led.set_low().unwrap();
},
Expand Down

0 comments on commit c74e948

Please sign in to comment.