From: c vw <dl1ycf@darc.de>
Date: Tue, 12 Nov 2019 09:19:41 +0000 (+0100)
Subject: even more debug output
X-Git-Url: https://git.rkrishnan.org/uri/simplejson/(%5B%5E?a=commitdiff_plain;h=bdfd6de9e19f09aad6f6caac6188606dbb0c3e80;p=pihpsdr.git

even more debug output
---

diff --git a/midi2.c b/midi2.c
index a46c5d0..10a1ebc 100644
--- a/midi2.c
+++ b/midi2.c
@@ -21,12 +21,15 @@ void NewMidiEvent(enum MIDIevent event, int channel, int note, int val) {
     static struct timespec tp, last_wheel_tp={0,0};
     long delta;
 
+fprintf(stderr,"MIDI:EVENT=%d CHAN=%d NOTE=%d VAL=%d\n",event,channel,note,val);
     if (event == MIDI_PITCH) {
 	desc=MidiCommandsTable.pitch;
     } else {
 	desc=MidiCommandsTable.desc[note];
     }
+fprintf(stderr,"MIDI:init DESC=%p\n",desc);
     while (desc) {
+fprintf(stderr,"DESC=%p next=%p CHAN=%d EVENT=%d\n", desc,desc->next,desc->channel,desc->event);
 	if ((desc->channel == channel || desc->channel == -1) && (desc->event == event)) {
 	    // Found matching entry
 	    switch (desc->event) {