From 5773df162c8635654b4cc59567f9011f64a5dde4 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Wed, 1 Apr 2020 11:22:23 -0500 Subject: [PATCH] astyle files --- rigs/kenwood/ic10.c | 6 ++++-- rigs/kenwood/kenwood.c | 10 +++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/rigs/kenwood/ic10.c b/rigs/kenwood/ic10.c index 7ccbc79b5..f492a9f69 100644 --- a/rigs/kenwood/ic10.c +++ b/rigs/kenwood/ic10.c @@ -81,7 +81,9 @@ int ic10_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, int retval; struct rig_state *rs; - rig_debug(RIG_DEBUG_TRACE,"%s: called cmd='%s', len=%d, data=%p, data_len=%p\n", __func__, cmd, cmd_len, data, data_len); + rig_debug(RIG_DEBUG_TRACE, + "%s: called cmd='%s', len=%d, data=%p, data_len=%p\n", __func__, cmd, cmd_len, + data, data_len); rs = &rig->state; @@ -124,7 +126,7 @@ static int get_ic10_if(RIG *rig, char *data) struct kenwood_priv_caps *priv = (struct kenwood_priv_caps *)rig->caps->priv; int i, data_len, retval = RIG_EINVAL; - rig_debug(RIG_DEBUG_TRACE,"%s: called\n", __func__); + rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__); for (i = 0; retval != RIG_OK && i < rig->caps->retry; i++) { diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 5df9cfa8c..88da199b3 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -1756,9 +1756,12 @@ int kenwood_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) || RIG_MODE_RTTYR == mode)) { char *data_cmd = "DA"; - if (RIG_IS_TS950 || RIG_IS_TS950SDX) { + + if (RIG_IS_TS950 || RIG_IS_TS950SDX) + { data_cmd = "DT"; } + /* supports DATA sub modes - see above */ snprintf(buf, sizeof(buf), "%s%c", data_cmd, data_mode); err = kenwood_transaction(rig, buf, NULL, 0); @@ -1988,7 +1991,7 @@ int kenwood_get_mode_if(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) *width = rig_passband_normal(rig, *mode); - if ( RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS850 || RIG_IS_TS950SDX) + if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS850 || RIG_IS_TS950SDX) { kenwood_get_filter(rig, width); @@ -3287,7 +3290,8 @@ int kenwood_get_trn(RIG *rig, int *trn) } /* these rigs only have AI[0|1] set commands and no AI query */ - if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS790 || RIG_IS_TS850 || RIG_IS_TS950SDX) + if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS790 || RIG_IS_TS850 + || RIG_IS_TS950SDX) { return -RIG_ENAVAIL; }