Change width to add 1 for icom rigs that need datamode filter width

pull/168/head
Michael Black 2020-01-08 14:38:34 -06:00
rodzic 138787f44c
commit 5572823882
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1205,7 +1205,8 @@ int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode,
rmode_t mode2; // not used as it will map to USB/LSB
pbwidth_t width2;
icom2rig_mode(rig, mode, width, &mode2, &width2);
datamode[1] = datamode[1] ? width2 : 0;
// since width2 is 0-2 for rigs that need this here we have to make it 1-3
datamode[1] = datamode[1] ? width2+1 : 0;
retval =
icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, 2, ackbuf,
&ack_len);