kopia lustrzana https://github.com/Hamlib/Hamlib
astyle files
rodzic
d0f114b178
commit
57c7f2a19f
|
@ -1772,8 +1772,10 @@ int icom_set_vfo(RIG *rig, vfo_t vfo)
|
|||
|
||||
case RIG_VFO_SUB:
|
||||
icvfo = S_SUB;
|
||||
|
||||
// If split is on these rigs can only split on Main/VFOB
|
||||
if (VFO_HAS_MAIN_SUB_A_B_ONLY && priv->split_on) icvfo = S_VFOB;
|
||||
if (VFO_HAS_MAIN_SUB_A_B_ONLY && priv->split_on) { icvfo = S_VFOB; }
|
||||
|
||||
break;
|
||||
|
||||
case RIG_VFO_TX:
|
||||
|
@ -3610,8 +3612,9 @@ int icom_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq)
|
|||
|
||||
if (VFO_HAS_MAIN_SUB_A_B_ONLY)
|
||||
{
|
||||
// Then we return the VFO to where it was
|
||||
if (save_vfo == RIG_VFO_MAIN && priv->split_on) save_vfo = RIG_VFO_A;
|
||||
// Then we return the VFO to where it was
|
||||
if (save_vfo == RIG_VFO_MAIN && priv->split_on) { save_vfo = RIG_VFO_A; }
|
||||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: SATMODE rig so setting vfo to %s\n", __func__,
|
||||
rig_strvfo(save_vfo));
|
||||
|
||||
|
|
|
@ -3344,7 +3344,8 @@ int kenwood_get_trn(RIG *rig, int *trn)
|
|||
*/
|
||||
int kenwood_set_powerstat(RIG *rig, powerstat_t status)
|
||||
{
|
||||
int retval = kenwood_transaction(rig, (status == RIG_POWER_ON) ? ";;;;PS1;" : "PS0",
|
||||
int retval = kenwood_transaction(rig,
|
||||
(status == RIG_POWER_ON) ? ";;;;PS1;" : "PS0",
|
||||
NULL, 0);
|
||||
int i = 0;
|
||||
int retry = 3 / rig->state.rigport.retry;
|
||||
|
|
|
@ -41,45 +41,46 @@ int print_caps_sum(const struct rig_caps *caps, void *data)
|
|||
switch (caps->rig_type & RIG_TYPE_MASK)
|
||||
{
|
||||
case RIG_TYPE_TRANSCEIVER:
|
||||
printf(fmt1,"Transceiver");
|
||||
printf(fmt1, "Transceiver");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_HANDHELD:
|
||||
printf(fmt1,"Handheld");
|
||||
printf(fmt1, "Handheld");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_MOBILE:
|
||||
printf(fmt1,"Mobile");
|
||||
printf(fmt1, "Mobile");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_RECEIVER:
|
||||
printf(fmt1,"Receiver");
|
||||
printf(fmt1, "Receiver");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_PCRECEIVER:
|
||||
printf(fmt1,"PC Receiver");
|
||||
printf(fmt1, "PC Receiver");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_SCANNER:
|
||||
printf(fmt1,"Scanner");
|
||||
printf(fmt1, "Scanner");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_TRUNKSCANNER:
|
||||
printf(fmt1,"Trunk scanner");
|
||||
printf(fmt1, "Trunk scanner");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_COMPUTER:
|
||||
printf(fmt1,"Computer");
|
||||
printf(fmt1, "Computer");
|
||||
break;
|
||||
|
||||
case RIG_TYPE_OTHER:
|
||||
printf(fmt1,"Other");
|
||||
printf(fmt1, "Other");
|
||||
break;
|
||||
|
||||
default:
|
||||
printf(fmt1,"Unknown");
|
||||
printf(fmt1, "Unknown");
|
||||
}
|
||||
printf("\t%s\n",caps->macro_name==NULL?"Unknown":caps->macro_name);
|
||||
|
||||
printf("\t%s\n", caps->macro_name == NULL ? "Unknown" : caps->macro_name);
|
||||
return -1; /* !=0, we want them all ! */
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue