From 7aa5e913df00d0a49212d71ec97f9ac3246c9693 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 24 Apr 2020 14:58:08 -0400 Subject: [PATCH] use pclose(popen()) for cw ID to prevent callsign cutoff --- afsk/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 24aead7e..9db7f7c1 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -509,9 +509,9 @@ if (cw_id == ON) // Don't send CW if using AX5043 or in mode cycling or set by 3 digitalWrite (txLed, txLedOn); //printf("Before 1st strcpy\n"); //printf("CW String: %s\n", cw_str); - popen(cw_str,"r"); + pclose(popen(cw_str,"r")); // execute command and wait for termination before continuing //printf("Before 1st strcpy\n"); - sleep(6); +// sleep(7); //printf("Before Write\n"); digitalWrite (txLed, txLedOn); //printf("After Write\n");