kopia lustrzana https://github.com/Hamlib/Hamlib
added ptt handling example, stand back !
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@291 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
83015a0102
commit
21db3793b9
|
@ -55,7 +55,7 @@ int main ()
|
|||
|
||||
|
||||
/*
|
||||
* Example of setting rig Main VFO to 439.700 Mhz FM -- FS
|
||||
* Example of setting rig paameters
|
||||
* and some error checking on the return code.
|
||||
*/
|
||||
|
||||
|
@ -103,6 +103,23 @@ int main ()
|
|||
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);
|
||||
|
||||
|
||||
/*
|
||||
* Simple examples of getting rig information -- FS
|
||||
*
|
||||
|
|
Ładowanie…
Reference in New Issue