From fc26aa545fa41261b8a5d6c0209a24dae6576a88 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 29 May 2022 12:06:03 -0500 Subject: [PATCH] Fix get_separator rigctl output --- tests/rigctl_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 6a551de6a..272cfb807 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -5204,11 +5204,11 @@ declare_proto_rig(get_separator) { char buf[32]; - if (isprint(rig_resp_sep)) + if ((interactive && prompt) || (interactive && !prompt && ext_resp)) { - sprintf(buf, "%c", rig_resp_sep); + fprintf(fout, "%s: ", cmd->arg1); } - else { sprintf(buf, "0x%x %p", rig_resp_sep, &rig_resp_sep); } + sprintf(buf, "0x%x", rig_resp_sep); fprintf(fout, "%s\n", buf); return RIG_OK;