From af4c6ec8061dc876ccb3c4cb746db2f3b9f09546 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Tue, 5 Aug 2025 22:16:48 +0200 Subject: [PATCH] Make the output of simft990 more friendly --- simulators/simft990.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/simulators/simft990.c b/simulators/simft990.c index 6f3a91256..0e22bea25 100644 --- a/simulators/simft990.c +++ b/simulators/simft990.c @@ -7,6 +7,7 @@ #include #include +#include "sim.h" float freqA = 14074000; float freqB = 14074500; @@ -44,14 +45,11 @@ static void load_dat(const char *filename, unsigned char buf[ALL_DATA_SIZE]) } fclose(fp); - printf("%d bytes read\n", n); + printf("%d bytes read from file %s\n", n, filename); } static unsigned char alldata[ALL_DATA_SIZE]; -#include "sim.h" - - int main(int argc, char *argv[]) { unsigned char buf[BUFSIZE]; @@ -68,8 +66,11 @@ int main(int argc, char *argv[]) if (bytes != 5) { printf("Not 5 bytes? bytes=%d\n", bytes); + continue; } + // Protocol of rigs/yaesu/ft990v12.c + if (buf[4] == 0x10) { write(fd, alldata, ALL_DATA_SIZE);