From 8e24746a3e14d0e3ed78e42d37a5132b99573b1e Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sun, 19 Mar 2023 19:17:38 +0100 Subject: [PATCH] Fix typos --- include/hamlib/rotlist.h | 2 +- rigs/icom/icom.c | 2 +- rigs/kenwood/k3.c | 4 ++-- rigs/tentec/tt550.c | 2 +- rigs/uniden/uniden_digital.c | 2 +- rigs/yaesu/newcat.c | 6 +++--- src/rig.c | 10 +++++----- src/tones.c | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/hamlib/rotlist.h b/include/hamlib/rotlist.h index 972df2d00..8be4b09d2 100644 --- a/include/hamlib/rotlist.h +++ b/include/hamlib/rotlist.h @@ -666,7 +666,7 @@ * * The FLIR backend can be used with FLIR and DirectedPercepition * rotators using the PTU protocol (e.g. PTU-D48). Currently only - * the serial interaface is supported and no ethernet. + * the serial interface is supported and no ethernet. */ //! @cond Doxygen_Suppress #define ROT_FLIR 25 diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index c4d9b9c65..71c401313 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -7790,7 +7790,7 @@ int icom_set_dcs_code(RIG *rig, vfo_t vfo, tone_t code) RETURNFUNC(-RIG_EINVAL); } - /* DCS Polarity ignored, by setting code_len to 3 it's foretval to 0 (= Tx:norm, Rx:norm). */ + /* DCS Polarity ignored, by setting code_len to 3 it's forced to 0 (= Tx:norm, Rx:norm). */ code_len = 3; to_bcd_be(codebuf, code, code_len * 2); diff --git a/rigs/kenwood/k3.c b/rigs/kenwood/k3.c index 499010c03..2cc7c48d6 100644 --- a/rigs/kenwood/k3.c +++ b/rigs/kenwood/k3.c @@ -2762,7 +2762,7 @@ int k4_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt) // The K4 has a problem in Fake It mode where the FA command is ignored -// We will use it's special TQ command to try and ensure PTT is really off +// We will use its special TQ command to try and ensure PTT is really off int k4_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) { char pttbuf[6]; @@ -2808,7 +2808,7 @@ int k4_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) return RIG_OK; } -// K3S band memory needs some time to do it's thing after freq change +// K3S band memory needs some time to do its thing after freq change // K3 probably does too // But what about the K4? int k3_set_freq(RIG *rig, vfo_t vfo, freq_t freq) diff --git a/rigs/tentec/tt550.c b/rigs/tentec/tt550.c index f80d25d20..de1690447 100644 --- a/rigs/tentec/tt550.c +++ b/rigs/tentec/tt550.c @@ -460,7 +460,7 @@ tt550_trx_open(RIG *rig) priv = (struct tt550_priv_data *) rig->state.priv; /* - * Reset the radio and start it's program running + * Reset the radio and start its program running * We'll try twice to reset before giving up */ if (tt550_reset(rig, RIG_RESET_SOFT) != RIG_OK) diff --git a/rigs/uniden/uniden_digital.c b/rigs/uniden/uniden_digital.c index a48db0537..d72d02936 100644 --- a/rigs/uniden/uniden_digital.c +++ b/rigs/uniden/uniden_digital.c @@ -293,7 +293,7 @@ const char *uniden_digital_get_info(RIG *rig) * STS command returns 3 lines including system, truck, freq info * * XXX indicates the BCD996T returns some non-printable ascii chars - * within it's comma separated fields. See pg 30-32 of BCD996T_Protocol.pdf. + * within its comma separated fields. See pg 30-32 of BCD996T_Protocol.pdf. * These chars cause abnomalies on stdout! */ /* FIXME: Strip or replace non-printable chars return from STS command! diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 18ed14fa5..939b05e04 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -1169,7 +1169,7 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) __func__, rigerror(err)); } - hl_usleep(500 * 1000); // wait for BS to do it's thing and swap back + hl_usleep(500 * 1000); // wait for BS to do its thing and swap back if (newcat_valid_command(rig, "VS")) { @@ -1193,7 +1193,7 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) __func__, rigerror(err)); } - hl_usleep(500 * 1000); // wait for BS to do it's thing + hl_usleep(500 * 1000); // wait for BS to do its thing } @@ -10964,7 +10964,7 @@ int newcat_set_cmd(RIG *rig) if (strncmp(priv->cmd_str, "BS", 2) == 0) { - // the BS command needs time to do it's thing + // the BS command needs time to do its thing hl_usleep(500 * 1000); priv->cache_start.tv_sec = 0; // invalidate the cache } diff --git a/src/rig.c b/src/rig.c index 0211d1f7e..19d28b087 100644 --- a/src/rig.c +++ b/src/rig.c @@ -480,7 +480,7 @@ static int rig_check_rig_caps() } /** - * \brief allocate a new RIG handle + * \brief Allocate a new #RIG handle. * \param rig_model The rig model for this new handle * * Allocates a new RIG handle and initializes the associated data @@ -3070,7 +3070,7 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) } #if 0 - hl_usleep(50 * 1000); // give PTT a chance to do it's thing + hl_usleep(50 * 1000); // give PTT a chance to do its thing // don't use the cached value and check to see if it worked elapsed_ms(&rig->state.cache.time_ptt, HAMLIB_ELAPSED_INVALIDATE); @@ -4948,7 +4948,7 @@ int HAMLIB_API rig_get_split_freq_mode(RIG *rig, /** * \brief set the split mode * \param rig The rig handle - * \param vfo The target VFO + * \param rx_vfo The receive VFO * \param split The split mode to set to * \param tx_vfo The transmit VFO * @@ -6015,7 +6015,7 @@ int HAMLIB_API rig_mW2power(RIG *rig, * * Returns the best frequency resolution of the rig, for a given \a mode. * - * \return the frequency resolution in Hertz if the operation h + * \return the frequency resolution in Hertz if the operation * has been successful, otherwise a negative value if an error occurred. * */ @@ -6054,7 +6054,7 @@ shortfreq_t HAMLIB_API rig_get_resolution(RIG *rig, rmode_t mode) * See #RIG_POWER_ON, #RIG_POWER_OFF and #RIG_POWER_STANDBY defines * for the \a status. * - * \return RIG_OK if the operation has been successful, ortherwise + * \return RIG_OK if the operation has been successful, otherwise * a negative value if an error occurred (in which case, cause is * set appropriately). * diff --git a/src/tones.c b/src/tones.c index c77704b79..768e377f3 100644 --- a/src/tones.c +++ b/src/tones.c @@ -480,7 +480,7 @@ int HAMLIB_API rig_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone) * * Sets the current Digitally-Coded *Squelch* code. * - * \return returns RIG_OK if the operation has been successful, ortherwise + * \return RIG_OK if the operation has been successful, otherwise * a negative value if an error occurred (in which case, cause is set * appropriately). * @@ -542,7 +542,7 @@ int HAMLIB_API rig_set_dcs_sql(RIG *rig, vfo_t vfo, tone_t code) * * Retrieves the current Digitally-Coded *Squelch* code. * - * \return RIG_OK if the operation has been successful, ortherwise + * \return RIG_OK if the operation has been successful, otherwise * a negative value if an error occurred (in which case, cause is * set appropriately). *