#1 #2
1.1.1 v1.1.1
PianetaRadio 2022-03-19 13:54:28 +01:00 zatwierdzone przez GitHub
rodzic 07b5a29765
commit 55ffcb86d7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 9 dodań i 10 usunięć

Wyświetl plik

@ -2,7 +2,7 @@ CatRadio
(+ New, * Updated, - Removed) (+ New, * Updated, - Removed)
1.1.1 - 1.1.1 - 2022-03-19
* VFO operations: check rig caps before perform VFO operations * VFO operations: check rig caps before perform VFO operations
* Sub VFO: improve sub VFO functions using targetable_vfo caps * Sub VFO: improve sub VFO functions using targetable_vfo caps

Wyświetl plik

@ -156,7 +156,7 @@ void MainWindow::guiInit()
} }
//* Mode combobox //* Mode combobox
if (my_rig->state.mode_list==RIG_MODE_NONE) if (my_rig->state.mode_list == RIG_MODE_NONE)
{ {
ui->comboBox_Mode->setDisabled(true); ui->comboBox_Mode->setDisabled(true);
ui->comboBox_ModeSub->setDisabled(true); ui->comboBox_ModeSub->setDisabled(true);
@ -240,7 +240,7 @@ void MainWindow::guiInit()
ui->radioButton_VFOSub->setCheckable(false); //disable VFOsub radio button ui->radioButton_VFOSub->setCheckable(false); //disable VFOsub radio button
} }
} }
else //NET rigctl, assume targetable_vfo else //NET rigctl, as workaround assume targetable_vfo
{ {
rigCap.freqSub = 1; rigCap.freqSub = 1;
rigCap.modeSub = 1; rigCap.modeSub = 1;

Wyświetl plik

@ -209,7 +209,7 @@ void RigDaemon::rigUpdate()
//* VFO Exchange //* VFO Exchange
if (rigCmd.vfoXchange) if (rigCmd.vfoXchange)
{ {
if (my_rig->caps->vfo_ops == RIG_OP_XCHG) if (my_rig->caps->vfo_ops & RIG_OP_XCHG)
{ {
mode_t tempMode = rigGet.mode; mode_t tempMode = rigGet.mode;
retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_XCHG); retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_XCHG);
@ -221,7 +221,7 @@ void RigDaemon::rigUpdate()
} }
} }
else if (my_rig->caps->vfo_ops == RIG_OP_TOGGLE) else if (my_rig->caps->vfo_ops & RIG_OP_TOGGLE)
{ {
freq_t tempFreq = rigGet.freqMain; freq_t tempFreq = rigGet.freqMain;
mode_t tempMode = rigGet.mode; mode_t tempMode = rigGet.mode;
@ -240,7 +240,7 @@ void RigDaemon::rigUpdate()
//* VFO Copy //* VFO Copy
if (rigCmd.vfoCopy) if (rigCmd.vfoCopy)
{ {
if (my_rig->caps->vfo_ops == RIG_OP_CPY) if (my_rig->caps->vfo_ops & RIG_OP_CPY)
{ {
retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_CPY); retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_CPY);
if (retcode == RIG_OK) if (retcode == RIG_OK)
@ -255,7 +255,7 @@ void RigDaemon::rigUpdate()
//* Band Up //* Band Up
if (rigCmd.bandUp) if (rigCmd.bandUp)
{ {
if (my_rig->caps->vfo_ops == RIG_OP_BAND_UP) if (my_rig->caps->vfo_ops & RIG_OP_BAND_UP)
{ {
retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_BAND_UP); retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_BAND_UP);
if (retcode == RIG_OK) if (retcode == RIG_OK)
@ -270,7 +270,7 @@ void RigDaemon::rigUpdate()
//* Band Down //* Band Down
if (rigCmd.bandDown) if (rigCmd.bandDown)
{ {
if (my_rig->caps->vfo_ops == RIG_OP_BAND_DOWN) if (my_rig->caps->vfo_ops & RIG_OP_BAND_DOWN)
{ {
retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_BAND_DOWN); retcode = rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_BAND_DOWN);
if (retcode == RIG_OK) if (retcode == RIG_OK)
@ -290,7 +290,7 @@ void RigDaemon::rigUpdate()
} }
//* Tune //* Tune
if (rigCmd.tune) if (rigCmd.tune && (my_rig->caps->vfo_ops & RIG_OP_TUNE))
{ {
rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_TUNE); rig_vfo_op(my_rig, RIG_VFO_CURR, RIG_OP_TUNE);
rigCmd.tune = 0; rigCmd.tune = 0;
@ -500,7 +500,6 @@ void RigDaemon::rigUpdate()
rig_get_split_vfo(my_rig, RIG_VFO_CURR, &rigGet.split, &rigGet.vfoTx); rig_get_split_vfo(my_rig, RIG_VFO_CURR, &rigGet.split, &rigGet.vfoTx);
rig_get_vfo(my_rig, &rigGet.vfoMain); rig_get_vfo(my_rig, &rigGet.vfoMain);
qDebug() << "get - " << "Main:" << rigGet.vfoMain << "Sub:" << rigGet.vfoSub << "Tx:" << rigGet.vfoTx << "Curr:" << RIG_VFO_CURR;
} }
//* Tuner //* Tuner