added ptt handling example, stand back !

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@291 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.0
Frank Singleton, VK3FCS 2000-12-09 21:50:09 +00:00
rodzic 83015a0102
commit 21db3793b9
1 zmienionych plików z 18 dodań i 1 usunięć

Wyświetl plik

@ -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
*