]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
MIDI: do not deliver CW key-down/up messages if using internal CW
authorc vw <dl1ycf@darc.de>
Fri, 21 May 2021 18:02:43 +0000 (20:02 +0200)
committerc vw <dl1ycf@darc.de>
Fri, 21 May 2021 18:02:43 +0000 (20:02 +0200)
midi3.c

diff --git a/midi3.c b/midi3.c
index 46141a6201c6ae8cd4762b4fa5b977ce1d9e2798..48f881db61e5dbb146749fa1b9cb69d691899c2a 100644 (file)
--- 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.