[Hamlib-cvs-digest] CVS: hamlib/tests testrig.c,1.6,1.7
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Frank S. <jav...@us...> - 2000-12-09 21:50:12
|
Update of /cvsroot/hamlib/hamlib/tests In directory slayer.i.sourceforge.net:/tmp/cvs-serv31118 Modified Files: testrig.c Log Message: added ptt handling example, stand back ! Index: testrig.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/tests/testrig.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** testrig.c 2000/12/05 22:04:44 1.6 --- testrig.c 2000/12/09 21:50:09 1.7 *************** *** 56,60 **** /* ! * Example of setting rig Main VFO to 439.700 Mhz FM -- FS * and some error checking on the return code. */ --- 56,60 ---- /* ! * Example of setting rig paameters * and some error checking on the return code. */ *************** *** 103,106 **** --- 103,123 ---- printf("rig_set_mode: error = %s \n", rigerror(retcode)); } + + retcode = rig_set_ptt(my_rig, RIG_VFO_A, RIG_PTT_ON ); /* stand back ! */ + + if (retcode != RIG_OK ) { + printf("rig_set_ptt: error = %s \n", rigerror(retcode)); + } + + sleep(1); + + retcode = rig_set_ptt(my_rig, RIG_VFO_A, RIG_PTT_OFF ); /* phew ! */ + + if (retcode != RIG_OK ) { + printf("rig_set_ptt: error = %s \n", rigerror(retcode)); + } + + sleep(1); + /* |