From 03840242f1c2753ed48cf37e8d0523f1e69b5399 Mon Sep 17 00:00:00 2001 From: "Frank Singleton, VK3FCS" Date: Sat, 29 Jul 2000 20:31:30 +0000 Subject: [PATCH] frq = cmd_get_freq_mode_status_main_vfo(fd, &mode); git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@47 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- ft847/test/testlibft847.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ft847/test/testlibft847.c b/ft847/test/testlibft847.c index 515af287c..34e326bea 100644 --- a/ft847/test/testlibft847.c +++ b/ft847/test/testlibft847.c @@ -5,7 +5,7 @@ * via serial interface to an FT-847 using the "CAT" interface. * * - * $Id: testlibft847.c,v 1.6 2000-07-29 02:39:15 javabear Exp $ + * $Id: testlibft847.c,v 1.7 2000-07-29 20:31:30 javabear Exp $ * */ @@ -125,7 +125,9 @@ static void decode_mode(unsigned char mode) { static int test(fd) { unsigned char data1; + unsigned char mode; int i; + long int frq; /* freq */ cmd_cat_off(fd); /* cat off */ sleep(1); @@ -146,7 +148,9 @@ static int test(fd) { data1 = cmd_get_rx_status(fd); decode_rx_status_flags(data1); sleep(1); - cmd_get_freq_mode_status_main_vfo(fd); + frq = cmd_get_freq_mode_status_main_vfo(fd, &mode); + printf("freq = %ld Hz and mode = %x \n",frq, mode ); + sleep(1); } cmd_cat_off(fd); /* cat off */