From: c vw Date: Fri, 21 May 2021 18:02:43 +0000 (+0200) Subject: MIDI: do not deliver CW key-down/up messages if using internal CW X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=b9140f5931786f8dea964c95c405e778ecf407e0;p=pihpsdr.git MIDI: do not deliver CW key-down/up messages if using internal CW --- diff --git a/midi3.c b/midi3.c index 46141a6..48f881d 100644 --- a/midi3.c +++ b/midi3.c @@ -61,7 +61,7 @@ typedef struct _MIDIcmd MIDIcmd; static int DoTheRestOfTheMIDI(void *data); void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) { - if (action == MIDI_ACTION_CWKEYER) { + if (action == MIDI_ACTION_CWKEYER && cw_keyer_internal == 0) { // // This is a CW key-up/down which uses functions from the keyer // that by-pass the interrupt-driven standard action.