From 558747fab36994493aaa12c0fcfa1011aa0cdcb4 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Mon, 20 Mar 2023 23:06:50 -0500 Subject: [PATCH] Update simft991.c --- simulators/simft991.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/simulators/simft991.c b/simulators/simft991.c index 965deb4f2..0442994b2 100644 --- a/simulators/simft991.c +++ b/simulators/simft991.c @@ -110,7 +110,13 @@ int main(int argc, char *argv[]) } else { continue; } - if (strcmp(buf, "RM5;") == 0) + if (strcmp(buf, ";") == 0) + { + pbuf = "?;"; + n = write(fd, pbuf, strlen(pbuf)); + printf("n=%d\n", n); + } + else if (strcmp(buf, "RM5;") == 0) { printf("%s\n", buf); usleep(50 * 1000); @@ -141,7 +147,7 @@ int main(int argc, char *argv[]) if (n <= 0) { perror("IF"); } } - else if (strcmp(buf, "FA;") == 0) + else if (strcmp(buf, "FA;") == 0) { SNPRINTF(buf, sizeof(buf), "FA%08.0f;", freqA); n = write(fd, buf, strlen(buf));