kopia lustrzana https://github.com/Hamlib/Hamlib
astyle icom.c
rodzic
2ff3fa0782
commit
c0743dfe6e
|
@ -1627,25 +1627,26 @@ int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (width != RIG_PASSBAND_NOCHANGE) {
|
if (width != RIG_PASSBAND_NOCHANGE)
|
||||||
if (filter_byte) // then we need the width byte too
|
|
||||||
{
|
{
|
||||||
unsigned char mode_icom; // not used as it will map to USB/LSB
|
if (filter_byte) // then we need the width byte too
|
||||||
signed char width_icom;
|
{
|
||||||
rig2icom_mode(rig, vfo, mode, width, &mode_icom, &width_icom);
|
unsigned char mode_icom; // not used as it will map to USB/LSB
|
||||||
// since width_icom is 0-2 for rigs that need this here we have to make it 1-3
|
signed char width_icom;
|
||||||
datamode[1] = datamode[0] ? width_icom : 0;
|
rig2icom_mode(rig, vfo, mode, width, &mode_icom, &width_icom);
|
||||||
retval =
|
// since width_icom is 0-2 for rigs that need this here we have to make it 1-3
|
||||||
icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, width_icom == -1 ? 1 : 2,
|
datamode[1] = datamode[0] ? width_icom : 0;
|
||||||
ackbuf,
|
retval =
|
||||||
&ack_len);
|
icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, width_icom == -1 ? 1 : 2,
|
||||||
}
|
ackbuf,
|
||||||
else
|
&ack_len);
|
||||||
{
|
}
|
||||||
retval =
|
else
|
||||||
icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, 1, ackbuf,
|
{
|
||||||
&ack_len);
|
retval =
|
||||||
}
|
icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, 1, ackbuf,
|
||||||
|
&ack_len);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue