From: c vw Date: Thu, 14 Jan 2021 15:17:56 +0000 (+0100) Subject: Increased max. MIDI CW key-down to 20 sec, and let MIDI CW key-down X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=f308789058569f90d0fcc7a755114005ba0791f7;p=pihpsdr.git Increased max. MIDI CW key-down to 20 sec, and let MIDI CW key-down abort any pending CAT CW messages --- diff --git a/midi3.c b/midi3.c index 5ad079a..0e53ed6 100644 --- a/midi3.c +++ b/midi3.c @@ -229,8 +229,9 @@ void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) { // if (type == MIDI_TYPE_KEY) { if (val != 0) { - cw_key_down=480000; // max. 10 sec + cw_key_down=960000; // max. 20 sec to protect hardware cw_key_up=0; + cw_key_hit=1; // abort any pending CAT CW messages } else { cw_key_down=0; cw_key_up=0;