From 9b257cb5721cc58cc5a4d03c1766264d25edb051 Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 21 May 2021 20:08:04 +0200 Subject: [PATCH] MIDI: do CW key-down only if not doing internal CW --- midi3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midi3.c b/midi3.c index 46141a6..eedf934 100644 --- a/midi3.c +++ b/midi3.c @@ -75,7 +75,7 @@ void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) { // // Since this if for immediate key-down, it does not rely on LOCALCW // - if (val != 0) { + if (val != 0 && cw_keyer_internal == 0) { cw_key_down=960000; // max. 20 sec to protect hardware cw_key_up=0; cw_key_hit=1; -- 2.45.2