From b3722f7cd0ce4778fd07d9db7189c89989eedbc1 Mon Sep 17 00:00:00 2001 From: "Frank Singleton, VK3FCS" Date: Wed, 26 Jul 2000 00:37:26 +0000 Subject: [PATCH] updated test() git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@24 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- ft847/test/testlibft847.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ft847/test/testlibft847.c b/ft847/test/testlibft847.c index 22c62dbdb..2dd978730 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.3 2000-07-26 00:09:29 javabear Exp $ + * $Id: testlibft847.c,v 1.4 2000-07-26 00:37:26 javabear Exp $ * */ @@ -32,9 +32,9 @@ static unsigned char datain[5]; /* data read from rig */ static void decode_rx_status_flags(unsigned char rxflag) { if((rxflag & RXSF_PTT_STATUS) != 0 ) { - printf("PTT = ON (TX) \n"); - } else { printf("PTT = OFF (RX) \n"); + } else { + printf("PTT = ON (TX) \n"); } printf("PO/ALC Meter Data = %i \n", rxflag & RXSF_POALC_METER_MASK); @@ -154,6 +154,10 @@ static int test(fd) { sleep(1); cmd_sat_off(fd); /* sat mode off */ sleep(1); + + data1 = cmd_get_rx_status(fd); + decode_rx_status_flags(data1); + sleep(1); cmd_cat_off(fd); /* cat off */ return 0;