From a1774cc9e065a0007e5be1bb113a8060254e3317 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 10 May 2019 07:00:52 +0200 Subject: [PATCH] Revert "Use the correct length for MIDI common messages." --- sndiod/midi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sndiod/midi.c b/sndiod/midi.c index 51e921c..b5cc4e8 100644 --- a/sndiod/midi.c +++ b/sndiod/midi.c @@ -309,8 +309,7 @@ midi_in(struct midi *iep, unsigned char *idata, int icount) iep->idx = 0; } else if (c >= 0xf0) { iep->msg[0] = c; - iep->len = common_len[c >> 5]; - log_puti(iep->len); + iep->len = common_len[c & 7]; iep->st = c; iep->idx = 1; } else if (c >= 0x80) {