From 6036a65d2e075393664f27d639fa4c6a312c6e1f Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sun, 24 Nov 2024 18:44:00 +0100 Subject: [PATCH] Fix typos in comments --- include/hamlib/rig.h | 4 ++-- rigs/flexradio/smartsdr.c | 2 +- rigs/icmarine/icmarine.c | 2 +- rigs/icom/frame.c | 2 +- rigs/icom/ic1275.c | 2 +- rigs/icom/ic271.c | 2 +- rigs/icom/ic275.c | 4 ++-- rigs/icom/ic471.c | 2 +- rigs/icom/ic475.c | 4 ++-- rigs/icom/ic970.c | 2 +- rigs/icom/icom.c | 6 +++--- rigs/kenwood/level_gran_elecraft.h | 2 +- rigs/kenwood/tmd710.c | 2 +- rigs/kenwood/ts2000.txt | 2 +- rigs/tentec/omnivii.c | 2 +- rigs/tentec/orion.c | 2 +- rigs/yaesu/ft1000mp.c | 2 +- rigs/yaesu/ft817.c | 2 +- rigs/yaesu/newcat.c | 2 +- rotators/gs232a/gs232.c | 2 +- rotators/rotorez/rotorez.txt | 2 +- scripts/build-VB.NET.sh | 2 +- src/rig.c | 4 ++-- tests/cachetest2.c | 2 +- tests/memcsv.c | 2 +- tests/rigctl_parse.c | 8 ++++---- 26 files changed, 35 insertions(+), 35 deletions(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 60d4da02b..82b18e0ff 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -2901,7 +2901,7 @@ struct rig_state { */ struct rig_state_deprecated { /********* ENSURE YOU DO NOT EVER MODIFY THIS STRUCTURE *********/ - /********* It will remain forever to provide DLL backwards compatiblity ******/ + /********* It will remain forever to provide DLL backwards compatibility ******/ /* * overridable fields */ @@ -3061,7 +3061,7 @@ typedef int (*spectrum_cb_t)(RIG *, * \sa rig_set_freq_callback(), rig_set_mode_callback(), rig_set_vfo_callback(), * rig_set_ptt_callback(), rig_set_dcd_callback() */ -// Do NOT add/remove from this structure -- it will break DLL backwards compatiblity +// Do NOT add/remove from this structure -- it will break DLL backwards compatibility struct rig_callbacks { freq_cb_t freq_event; /*!< Frequency change event */ rig_ptr_t freq_arg; /*!< Frequency change argument */ diff --git a/rigs/flexradio/smartsdr.c b/rigs/flexradio/smartsdr.c index 992fffe5c..16324b5bc 100644 --- a/rigs/flexradio/smartsdr.c +++ b/rigs/flexradio/smartsdr.c @@ -258,7 +258,7 @@ int smartsdr_open(RIG *rig) char cmd[64]; int loops = 20; ENTERFUNC; - // Once we've connected and hit here we should have two messages queued from the intial connect + // Once we've connected and hit here we should have two messages queued from the initial connect sprintf(cmd, "sub slice %d", priv->slicenum); //sprintf(cmd, "sub slice all"); diff --git a/rigs/icmarine/icmarine.c b/rigs/icmarine/icmarine.c index afdac0f08..bc5a2ce47 100644 --- a/rigs/icmarine/icmarine.c +++ b/rigs/icmarine/icmarine.c @@ -269,7 +269,7 @@ int icmarine_transaction(RIG *rig, const char *cmd, const char *param, cmd_len += snprintf(cmdbuf + cmd_len, BUFSZ - cmd_len, ",%s", param); } - /* NMEA checksum, betwwen '$' and '*' */ + /* NMEA checksum, between '$' and '*' */ for (i = 1; i < cmd_len; i++) { csum = csum ^ (unsigned)cmdbuf[i]; diff --git a/rigs/icom/frame.c b/rigs/icom/frame.c index a11a98867..06ef16798 100644 --- a/rigs/icom/frame.c +++ b/rigs/icom/frame.c @@ -291,7 +291,7 @@ again1: RETURNFUNC(-RIG_EPROTO); } - // first 2 bytes of everyting are 0xfe so we won't test those + // first 2 bytes of everything are 0xfe so we won't test those // this allows some corruptin of the 0xfe bytes which has been seen in the wild if (memcmp(&buf[2], &sendbuf[2], frm_len - 2) != 0) { diff --git a/rigs/icom/ic1275.c b/rigs/icom/ic1275.c index 0e3ae6585..887959536 100644 --- a/rigs/icom/ic1275.c +++ b/rigs/icom/ic1275.c @@ -106,7 +106,7 @@ struct rig_caps ic1275_caps = }, .tuning_steps = { - {IC1275_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC1275_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ diff --git a/rigs/icom/ic271.c b/rigs/icom/ic271.c index b0dd0c336..bb80b2e68 100644 --- a/rigs/icom/ic271.c +++ b/rigs/icom/ic271.c @@ -117,7 +117,7 @@ struct rig_caps ic271_caps = }, .tuning_steps = { - {IC271_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC271_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ diff --git a/rigs/icom/ic275.c b/rigs/icom/ic275.c index 372fcf349..8340a6712 100644 --- a/rigs/icom/ic275.c +++ b/rigs/icom/ic275.c @@ -118,7 +118,7 @@ struct rig_caps ic275_caps = }, .tuning_steps = { - {IC275_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC275_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ @@ -217,7 +217,7 @@ struct rig_caps ic375_caps = }, .tuning_steps = { - {IC275_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC275_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ diff --git a/rigs/icom/ic471.c b/rigs/icom/ic471.c index c8f07de1c..c8a0821cd 100644 --- a/rigs/icom/ic471.c +++ b/rigs/icom/ic471.c @@ -116,7 +116,7 @@ struct rig_caps ic471_caps = }, .tuning_steps = { - {IC471_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC471_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ diff --git a/rigs/icom/ic475.c b/rigs/icom/ic475.c index f07dd22e5..74b0a2ef1 100644 --- a/rigs/icom/ic475.c +++ b/rigs/icom/ic475.c @@ -110,7 +110,7 @@ struct rig_caps ic475_caps = }, .tuning_steps = { - {IC475_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC475_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ @@ -216,7 +216,7 @@ struct rig_caps ic575_caps = }, .tuning_steps = { - {IC475_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC475_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ diff --git a/rigs/icom/ic970.c b/rigs/icom/ic970.c index d627347f6..cb96e0e5b 100644 --- a/rigs/icom/ic970.c +++ b/rigs/icom/ic970.c @@ -125,7 +125,7 @@ struct rig_caps ic970_caps = }, .tuning_steps = { - {IC970_MODES, 10}, /* TBC: does this rig supports settin tuning step? */ + {IC970_MODES, 10}, /* TBC: does this rig supports setting tuning step? */ RIG_TS_END, }, /* mode/filter list, remember: order matters! */ diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 00929c528..721e0df69 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1290,7 +1290,7 @@ retry_open: } #if 0 // do not do this here -- needs to be done when ranges are requested instead as this is very slow - icom_get_freq_range(rig); // try get to get rig range capability dyamically + icom_get_freq_range(rig); // try get to get rig range capability dynamically #endif rp->retry = retry_save; @@ -1318,7 +1318,7 @@ int icom_rig_close(RIG *rig) int retval = abs(rig_set_powerstat(rig, 0)); // this is only a fatal error if powerstat is implemented - // if not iplemented than we're at an error here + // if not implemented than we're at an error here if (retval != RIG_OK && retval != RIG_ENIMPL && retval != RIG_ENAVAIL) { rig_debug(RIG_DEBUG_WARN, "%s: unexpected retval here: %s\n", @@ -8194,7 +8194,7 @@ int icom_set_powerstat(RIG *rig, powerstat_t status) continue; } - // Use get_freq as all rigs should repond to this + // Use get_freq as all rigs should respond to this retval = rig_get_freq(rig, RIG_VFO_CURR, &freq); if (retval == RIG_OK) diff --git a/rigs/kenwood/level_gran_elecraft.h b/rigs/kenwood/level_gran_elecraft.h index 4e7d3c357..6919fdb0b 100644 --- a/rigs/kenwood/level_gran_elecraft.h +++ b/rigs/kenwood/level_gran_elecraft.h @@ -1,4 +1,4 @@ - // Once included these values can be overidden in the back-end + // Once included these values can be overridden in the back-end // Known variants are PREAMP, ATT, NB, CWPITCH, IF, NOTCHF, VOXDELAY, BKINDL, BKIN_DLYMS, RFPOWER_METER(255 or 100), RFPOWER_METER_WATTS(255 or 100) // cppcheck-suppress * /* raw data */ diff --git a/rigs/kenwood/tmd710.c b/rigs/kenwood/tmd710.c index b544f41a7..7130b9076 100644 --- a/rigs/kenwood/tmd710.c +++ b/rigs/kenwood/tmd710.c @@ -1118,7 +1118,7 @@ int tmd710_push_mu(RIG *rig, tmd710_mu *mu_struct) rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__); - // we re-use fo_struct->vfo for the channel# + // we reuse fo_struct->vfo for the channel# snprintf(cmdbuf, sizeof(cmdbuf), "MU %1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,%02d,%1d," "%1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d,%1d," diff --git a/rigs/kenwood/ts2000.txt b/rigs/kenwood/ts2000.txt index 132e60275..335a810fb 100644 --- a/rigs/kenwood/ts2000.txt +++ b/rigs/kenwood/ts2000.txt @@ -41,7 +41,7 @@ rig_init() "id;" ts2000_init() If "SC1;", on either main or sub *both* must be halted before most commands will function. These may be restored after command is executed or not if the - command superceeds scan mode. + command supersedes scan mode. "fr;"/"ft;" or "if;" If in memory mode, the rig won't always act appropriately to serial port requests. "qr;" if quick memory set, same as previous diff --git a/rigs/tentec/omnivii.c b/rigs/tentec/omnivii.c index 47e22e637..600bcfa04 100644 --- a/rigs/tentec/omnivii.c +++ b/rigs/tentec/omnivii.c @@ -978,7 +978,7 @@ int tt588_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) else { // transmit reply example S<0x8f><0x01> 0x0f=15 watts, 0x01 - // it appears 0x01 refelected = 0W since 0 means not read yet + // it appears 0x01 reflected = 0W since 0 means not read yet int strength; int reflected = (int)lvlbuf[2]; reflected = reflected > 0 ? reflected - 1 : 0; diff --git a/rigs/tentec/orion.c b/rigs/tentec/orion.c index 2eb0adaad..fbed4962d 100644 --- a/rigs/tentec/orion.c +++ b/rigs/tentec/orion.c @@ -408,7 +408,7 @@ static char which_vfo(const RIG *rig, vfo_t vfo) * \param rig must != NULL * \param vfo RIG_VFO_A or RIG_VFO_B * \param freq - * \brief Set a frequence into the specified VFO + * \brief Set a frequency into the specified VFO * * assumes STATE(rig)->priv!=NULL * \n assumes priv->mode in AM,CW,LSB or USB. diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index d134c2b3a..fa8dd68a4 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -25,7 +25,7 @@ * Right now, this FT-1000MP implementation is a big mess. * This is actually a fast copy past (from ft920.c), * just to make get_freq/set_freq and co to work for a friend of mine. - * I wouln't mind if someone could take over the maintenance + * I wouldn't mind if someone could take over the maintenance * of this piece of code, and eventually rewrite it. * '02, Stephane */ diff --git a/rigs/yaesu/ft817.c b/rigs/yaesu/ft817.c index 301e0e44f..c520eec61 100644 --- a/rigs/yaesu/ft817.c +++ b/rigs/yaesu/ft817.c @@ -1652,7 +1652,7 @@ static int ft817_set_freq(RIG *rig, vfo_t vfo, freq_t freq) rig_debug(RIG_DEBUG_VERBOSE, "ft817: requested freq = %"PRIfreq" Hz\n", freq); /* fill in the frequency */ - /* changed to truncate the freq for gpredict compatiblity */ + /* changed to truncate the freq for gpredict compatibility */ to_bcd_be(data, (freq + 0) / 10, 8); rig_force_cache_timeout( diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 8044f532f..8549048b9 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -2001,7 +2001,7 @@ int newcat_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) && (is_ftdx3000 || is_ftdx3000dm) ) { - // DX3000 with seperate rx/tx antennas was failing frequency change + // DX3000 with separate rx/tx antennas was failing frequency change // so we increased the sleep from 100ms to 300ms hl_usleep(300 * 1000); } diff --git a/rotators/gs232a/gs232.c b/rotators/gs232a/gs232.c index 674f203fd..96cd0c732 100644 --- a/rotators/gs232a/gs232.c +++ b/rotators/gs232a/gs232.c @@ -354,7 +354,7 @@ const struct rot_caps st2_rot_caps = /* ************************************************************************* */ /* - * F1TE Tracker, GS232 withtout position feedback + * F1TE Tracker, GS232 without position feedback * * http://www.f1te.org/index.php?option=com_content&view=article&id=19&Itemid=39 */ diff --git a/rotators/rotorez/rotorez.txt b/rotators/rotorez/rotorez.txt index 2abdc067c..a86c13aec 100644 --- a/rotators/rotorez/rotorez.txt +++ b/rotators/rotorez/rotorez.txt @@ -120,7 +120,7 @@ Subject: Rotor Card and Rotor-EZ command reference > Rotor Card and Rotor-EZ into our library. In the course of several Web > searches I have downloaded the Hy-Gain DCU-1 manual from their site and > I've also visited the Digital Audio Rotor-EZ troubleshooting site. -> Between the two I have found a couple of descrepancies in the command +> Between the two I have found a couple of discrepancies in the command > set. If possible, I would like a copy of the complete command set and > their syntax for these two boards for our project. > diff --git a/scripts/build-VB.NET.sh b/scripts/build-VB.NET.sh index 508b1c98e..ee2f292de 100644 --- a/scripts/build-VB.NET.sh +++ b/scripts/build-VB.NET.sh @@ -99,7 +99,7 @@ Covered are: - get Riginfo -rig_debug_level_e not verified (Function is Void, VB Dokumentation -says this is not possible to be marshaled, but Compiler is still accapting this) +says this is not possible to be marshaled, but Compiler is still accepting this) To get access to the Class you have to add something like this in your Main Class diff --git a/src/rig.c b/src/rig.c index bf233f360..e47105e6c 100644 --- a/src/rig.c +++ b/src/rig.c @@ -877,7 +877,7 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model) rs->announces = caps->announces; rp->fd = pttp->fd = dcdp->fd = -1; - // some rigs (like SDR) behave differnt when checking for power on + // some rigs (like SDR) behave different when checking for power on // So we assume power is on until one of the backends KNOWS it is off rs->powerstat = RIG_POWER_ON; // default to power on until proven otherwise @@ -9006,7 +9006,7 @@ int morse_data_handler_set_keyspd(RIG *rig, int keyspd) * \retval The address of the enumed structure * * Note: This is meant for use by the HAMLIB_???PORT macros mostly. Only - * compatiblity with them is supported. + * compatibility with them is supported. * * \sa amp_data_pointer, rot_data_pointer */ diff --git a/tests/cachetest2.c b/tests/cachetest2.c index 72ee34a3c..24c1b68c1 100644 --- a/tests/cachetest2.c +++ b/tests/cachetest2.c @@ -1,7 +1,7 @@ /* This program does a fast iteration of v f m t s * By Michael Black W9MDB * This allows testing of another program using rigctld - * to test changin vfo, freq, mode, PTT, or split and see the change immediately in this program. + * to test changing vfo, freq, mode, PTT, or split and see the change immediately in this program. * Used in testing caching effects that have been added * To compile: * gcc -I../src -I../include -g -o cachetest2 cachetest2.c -lhamlib diff --git a/tests/memcsv.c b/tests/memcsv.c index aa9cdcff4..5e812d81a 100644 --- a/tests/memcsv.c +++ b/tests/memcsv.c @@ -699,7 +699,7 @@ int dump_csv_chan(RIG *rig, if (mem_caps->flags) { - if (chan.tag[0] != 0) // then we need the seperator + if (chan.tag[0] != 0) // then we need the separator { fprintf(f, "%x%c", chan.flags, csv_sep); } diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index c6b3ce2d9..4b305a281 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -1795,7 +1795,7 @@ readline_repeat: // chk_vfo is the one command we'll allow without a password // since it's in the initial handshake int preCmd = - 0; // some command are allowed without passoword to satisfy rigctld initialization from rigctl -m 2 + 0; // some command are allowed without password to satisfy rigctld initialization from rigctl -m 2 if (cmd_entry->arg1 != NULL) { @@ -4730,7 +4730,7 @@ declare_proto_rig(dump_state) rig_debug(RIG_DEBUG_ERR, "%s: chk_vfo_executed=%d\n", __func__, chk_vfo_executed); - if (chk_vfo_executed) // for 3.3 compatiblility + if (chk_vfo_executed) // for 3.3 compatibility { fprintf(fout, "vfo_ops=0x%x\n", rig->caps->vfo_ops); fprintf(fout, "ptt_type=0x%x\n", @@ -5141,7 +5141,7 @@ declare_proto_rig(send_cmd) rig_debug(RIG_DEBUG_TRACE, "%s: arg1=%s\n", __func__, arg1); - // note that hex sscanf expectes at least 2 values to pass this check + // note that hex sscanf expects at least 2 values to pass this check // is there any situation where only one x00 value would be written? unsigned int n, i1, i2; n = sscanf(arg1, "x%x x%x", &i1, &i2); @@ -5807,7 +5807,7 @@ static int parse_hex(const char *s, unsigned char *buf, int len) return i; } -// sends whatever is in s -- no addtions or changes done +// sends whatever is in s -- no additions or changes done extern int netrigctl_send_raw(RIG *rig, char *s); /* 0xa4 */ declare_proto_rig(send_raw)