From b5d136ff083ae5a07cda98ff1bf3218456da635b Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sat, 2 Aug 2025 16:01:48 +0200 Subject: [PATCH] Print responses --- simulators/simyaesu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/simulators/simyaesu.c b/simulators/simyaesu.c index 480552bd4..8f93fd0f7 100644 --- a/simulators/simyaesu.c +++ b/simulators/simyaesu.c @@ -127,6 +127,8 @@ int main(int argc, char *argv[]) if (getmyline(fd, buf)) { printf("Cmd:%s\n", buf); + resp[0] = 0; + pbuf = NULL; } //else { return 0; } @@ -443,6 +445,14 @@ int main(int argc, char *argv[]) fprintf(stderr, "Unknown command: '%s'\n", buf); } + if (pbuf) + { + printf("Resp:%s\n", pbuf); + } + else if (resp[0]) + { + printf("Resp:%s\n", resp); + } } return 0;