]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
even more debug output
authorc vw <dl1ycf@darc.de>
Tue, 12 Nov 2019 09:19:41 +0000 (10:19 +0100)
committerc vw <dl1ycf@darc.de>
Tue, 12 Nov 2019 09:19:41 +0000 (10:19 +0100)
midi2.c

diff --git a/midi2.c b/midi2.c
index a46c5d07f99c639f5918b5835fb15a62979a442c..10a1ebca013664a08f31aaafe9d2851e9aef2f60 100644 (file)
--- 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) {