From 08c06aea147efe28d56baaf308b03d8463c9600e Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Thu, 7 Jul 2022 21:25:58 +0200 Subject: [PATCH] Fix spelling errors Fixed with: codespell --summary --skip=.git,extra,,lib,macros,security --ignore-words-list="ans,ba,cant,develope,fo,get's,nin,numer,parm,parms,setts,som,statics,ths,ue,vektor,objext" --write-changes --interactive=2 and manual editing. --- Makefile.Windows | 2 +- NEWS | 2 +- bindings/luatest.lua | 2 +- doc/man1/rigctl.1 | 2 +- doc/man7/hamlib-primer.7 | 2 +- docker-build/README.docker | 2 +- include/hamlib/rig.h | 4 ++-- rigs/aor/README.aor | 2 +- rigs/aor/README.ar7030 | 4 ++-- rigs/aor/ar8200.c | 2 +- rigs/aor/ar8600.c | 2 +- rigs/codan/codan.c | 2 +- rigs/dummy/flrig.c | 4 ++-- rigs/dummy/netrigctl.c | 2 +- rigs/dummy/tci1x.c | 2 +- rigs/gomspace/gs100_sim/gs100_sim.ino | 12 ++++++------ rigs/icom/icom.c | 4 ++-- rigs/icom/icom_defs.h | 2 +- rigs/kenwood/k3.c | 4 ++-- rigs/kenwood/kenwood.c | 2 +- rigs/kit/dds60.c | 2 +- rigs/kit/elektor507.c | 2 +- rigs/kit/si570avrusb.c | 2 +- rigs/pcr/pcr.c | 2 +- rigs/prm80/prm80.c | 4 ++-- rigs/yaesu/ft100.c | 2 +- rigs/yaesu/ft817.c | 2 +- rigs/yaesu/ft980.h | 2 +- rotators/radant/radant.txt | 2 +- src/amplifier.c | 2 +- src/locator.c | 2 +- src/misc.c | 2 +- src/rig.c | 6 +++--- src/rotator.c | 6 +++--- src/settings.c | 4 ++-- 35 files changed, 51 insertions(+), 51 deletions(-) diff --git a/Makefile.Windows b/Makefile.Windows index ce756f846..a15e378a2 100755 --- a/Makefile.Windows +++ b/Makefile.Windows @@ -1447,7 +1447,7 @@ $(OBJ_DIR)/Hamlib.def: $(Hamlib_STAT_LIB) $(THIS_FILE) # # GNU-make macros. # -# This asumes you have a Cygwin/Msys 'echo' with colour support. +# This assumes you have a Cygwin/Msys 'echo' with colour support. # green_message = @echo -e "\e[1;32m$(strip $(1))\e[0m" white_message = @echo -e "\e[1;37m$(strip $(1))\e[0m" diff --git a/NEWS b/NEWS index 589658174..31ba5ab3a 100644 --- a/NEWS +++ b/NEWS @@ -87,7 +87,7 @@ Version 4.3.1 - Fix segfault in kenwood_set_vfo - scripts: Update example in readme, since 4.0 817 is 1020 - Make testlibusb.c compatible with libusb < 1.0.23 - Note: On systems with libusb < 1.0.23 a warning will be emmitted + Note: On systems with libusb < 1.0.23 a warning will be emitted but compliation should proceed without error. - Update testlibusb.c warning to "may be" instead of "will be" - Change kenwood to only set VFOA default on 1st rig_open call diff --git a/bindings/luatest.lua b/bindings/luatest.lua index 3d097920c..6f504bf5f 100755 --- a/bindings/luatest.lua +++ b/bindings/luatest.lua @@ -119,7 +119,7 @@ function doStartup() print(string.format("Latitude:\t%4.4f, %4.0f° %.0f' %2.0f\" %1s\trecoded: %9.4f", lat1, deg2, mins2, sec2, D, lat3)) if (version() >= 5.4) then -- older version may not handle 64-bit values - -- not sure when this was fixed...might have been 5.3 somehwere + -- not sure when this was fixed...might have been 5.3 somewhere print(string.format("The next two lines should show 0x8000000000000000")); print(string.format("RIG_MODE_TESTS_MAX: 0x%08x", Hamlib.RIG_MODE_TESTS_MAX)); print(string.format("RIG_FUNC_BIT63: 0x%08x", Hamlib.RIG_FUNC_BIT63)); diff --git a/doc/man1/rigctl.1 b/doc/man1/rigctl.1 index 1e456608d..34eb089cf 100644 --- a/doc/man1/rigctl.1 +++ b/doc/man1/rigctl.1 @@ -1202,7 +1202,7 @@ Shows the current SeparatorChar Set .RI \(aq SeparatorChar \(aq .IP -Change rigctld response to use a special char intead of newline (recommend #). +Change rigctld response to use a special char instead of newline (recommend #). This can be dyamically changed while running. Handy for node-red's tcprequest node. This can be dyamically changed while running. diff --git a/doc/man7/hamlib-primer.7 b/doc/man7/hamlib-primer.7 index c7f76fb1a..e078cdd0d 100644 --- a/doc/man7/hamlib-primer.7 +++ b/doc/man7/hamlib-primer.7 @@ -728,7 +728,7 @@ do not take up much space, however it can be useful for rebuilding the when modifying a .I Makefile.am or -.I confgure.ac +.I configure.ac during build system development. . . diff --git a/docker-build/README.docker b/docker-build/README.docker index ea9ad0f57..c5ed7822c 100644 --- a/docker-build/README.docker +++ b/docker-build/README.docker @@ -1,4 +1,4 @@ -This is all about building hamlib inside docker contariner - so that you do not need to install dependencied on your local machine. +This is all about building hamlib inside docker container - so that you do not need to install dependencies on your local machine. 1. Build docker container diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 6b4e64d0a..920cbb678 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -2206,7 +2206,7 @@ typedef struct hamlib_async_pipe hamlib_async_pipe_t; // DO NOT CHANGE THIS STRUCTURE ALL UNTIL 5.0 // Right now it is static inside rig structure // 5.0 will change it to a pointer which can then be added to -// At that point only add to the end of the stucture +// At that point only add to the end of the structure typedef struct hamlib_port { union { rig_port_t rig; /*!< Communication port type */ @@ -2466,7 +2466,7 @@ struct rig_state { */ // moving the hamlib_port_t to the end of rig_state and making it a pointer // this should allow changes to hamlib_port_t without breaking shared libraries - // these will maintain a copy of the new port_t for backwards compatiblity + // these will maintain a copy of the new port_t for backwards compatibility // to these offsets -- note these must stay until a major version update is done like 5.0 hamlib_port_t_deprecated rigport_deprecated; /*!< Rig port (internal use). */ hamlib_port_t_deprecated pttport_deprecated; /*!< PTT port (internal use). */ diff --git a/rigs/aor/README.aor b/rigs/aor/README.aor index e1404f158..c455bbd38 100644 --- a/rigs/aor/README.aor +++ b/rigs/aor/README.aor @@ -20,7 +20,7 @@ This is a WIP. Handles 5% of all opcodes. All primitives are written from spec. In other words, they are totally untested because I don't own an AOR scanner myself. -Patchs and contributions are welcome! I'm also looking for +Patches and contributions are welcome! I'm also looking for a real maintainer :) --SF diff --git a/rigs/aor/README.ar7030 b/rigs/aor/README.ar7030 index 2f0e6a998..8c62f8466 100644 --- a/rigs/aor/README.ar7030 +++ b/rigs/aor/README.ar7030 @@ -43,9 +43,9 @@ Rig command: \get_powerstat Rig command: \reset Reset: 1 > Software reset -Rig command: Quitt Q q +Rig command: Quit Q q -Rig command: Quitt Q Q +Rig command: Quit Q Q Rig command: 1 Caps dump for model 503 diff --git a/rigs/aor/ar8200.c b/rigs/aor/ar8200.c index 582ff91d3..15e905935 100644 --- a/rigs/aor/ar8200.c +++ b/rigs/aor/ar8200.c @@ -125,7 +125,7 @@ const struct rig_caps ar8200_caps = .max_ifshift = Hz(0), .targetable_vfo = 0, .transceive = RIG_TRN_RIG, - .bank_qty = 20, /* A through J, and a trough j */ + .bank_qty = 20, /* A through J, and a through j */ .chan_desc_sz = 12, .vfo_ops = AR8200_VFO_OPS, .scan_ops = AR8200_SCAN_OPS, diff --git a/rigs/aor/ar8600.c b/rigs/aor/ar8600.c index a9d396587..9f6b66bfb 100644 --- a/rigs/aor/ar8600.c +++ b/rigs/aor/ar8600.c @@ -127,7 +127,7 @@ const struct rig_caps ar8600_caps = .max_ifshift = Hz(0), .targetable_vfo = 0, .transceive = RIG_TRN_RIG, - .bank_qty = 20, /* A through J, and a trough j */ + .bank_qty = 20, /* A through J, and a through j */ .chan_desc_sz = 12, .vfo_ops = AR8600_VFO_OPS, .scan_ops = AR8600_SCAN_OPS, diff --git a/rigs/codan/codan.c b/rigs/codan/codan.c index 1ba22f02e..9c0ed6c81 100644 --- a/rigs/codan/codan.c +++ b/rigs/codan/codan.c @@ -70,7 +70,7 @@ int codan_transaction(RIG *rig, char *cmd, int expected, char **result) if (expected == 0) { - // response format is reponse...0x0d0x0a + // response format is response...0x0d0x0a retval = read_string(&rs->rigport, (unsigned char *) priv->ret_data, sizeof(priv->ret_data), "\x0a", 1, 0, 1); diff --git a/rigs/dummy/flrig.c b/rigs/dummy/flrig.c index 7e0904c51..265d8d8fc 100644 --- a/rigs/dummy/flrig.c +++ b/rigs/dummy/flrig.c @@ -582,7 +582,7 @@ static int flrig_transaction(RIG *rig, char *cmd, char *cmd_arg, char *value, read_transaction(rig, xml, sizeof(xml)); // this might time out -- that's OK - // we get an uknown response if function does not exist + // we get an unknown response if function does not exist if (strstr(xml, "unknown")) { set_transaction_inactive(rig); RETURNFUNC(RIG_ENAVAIL); } if (value) @@ -1997,7 +1997,7 @@ static int flrig_set_split_freq_mode(RIG *rig, vfo_t vfo, freq_t freq, ENTERFUNC; - // we alway do split on VFOB + // we always do split on VFOB retval = flrig_set_freq(rig, RIG_VFO_B, freq); if (retval != RIG_OK) diff --git a/rigs/dummy/netrigctl.c b/rigs/dummy/netrigctl.c index 076daa023..c6048085e 100644 --- a/rigs/dummy/netrigctl.c +++ b/rigs/dummy/netrigctl.c @@ -777,7 +777,7 @@ static int netrigctl_open(RIG *rig) } else if (strcmp(setting, "timeout") == 0) { - // use the rig's timeout value pluse 500ms for potential network delays + // use the rig's timeout value plus 500ms for potential network delays rig->caps->timeout = strtol(value, NULL, 0) + 500; rig_debug(RIG_DEBUG_TRACE, "%s: timeout value = '%s', final timeout=%d\n", __func__, value, rig->caps->timeout); diff --git a/rigs/dummy/tci1x.c b/rigs/dummy/tci1x.c index 6b32a3486..4307805c7 100644 --- a/rigs/dummy/tci1x.c +++ b/rigs/dummy/tci1x.c @@ -1717,7 +1717,7 @@ static int tci1x_set_split_freq_mode(RIG *rig, vfo_t vfo, freq_t freq, ENTERFUNC; - // we alway do split on VFOB + // we always do split on VFOB retval = tci1x_set_freq(rig, RIG_VFO_B, freq); if (retval != RIG_OK) diff --git a/rigs/gomspace/gs100_sim/gs100_sim.ino b/rigs/gomspace/gs100_sim/gs100_sim.ino index 7d8a2f456..cdc814346 100644 --- a/rigs/gomspace/gs100_sim/gs100_sim.ino +++ b/rigs/gomspace/gs100_sim/gs100_sim.ino @@ -5,7 +5,7 @@ * Created in 2022 by Richard Linhart OK1CTR OK1CTR@gmail.com * and used during VZLUSAT-2 satellite mission. * - * This sorce code is free software; you can redistribute it and/or + * This source code is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. @@ -40,7 +40,7 @@ #define STATUS_ERROR -1 //! Serial baud rate - cannot use 500000 as the GS100 have #define BAUD_RATE 115200 -//! Incomming serial buffer length +//! Incoming serial buffer length #define BUF_LENGTH 32 //! New line character on receive #define NLRX '\n' @@ -91,7 +91,7 @@ static unsigned long tx_freq; /* Private function prototypes -----------------------------------------------*/ /** - * @brief Store incomming serial characters unitl line end + * @brief Store incoming serial characters until line end * @return The line if received successfully or NULL */ static char *serReadLine(void); @@ -132,7 +132,7 @@ static void prnPrompt(void); /** * @brief Displays hint output for commands * @param hint_type Type or command - * @oaram cmd Part of commend to comment + * @oaram cmd Part of command to comment */ static void prnHint(hint_t hint_type, char *cmd); @@ -181,7 +181,7 @@ void loop(void) /* Private functions ---------------------------------------------------------*/ -/* Store incomming serial characters unitl line end */ +/* Store incoming serial characters until line end */ static char *serReadLine(void) { int inchar; @@ -354,7 +354,7 @@ static void prnHint(hint_t hint_type, char *cmd) return; case hint_param2: - // reduced on simulated commads only! + // reduced on simulated commands only! Serial.print("'param' contains sub-commands:"); Serial.print(NLTX); Serial.print(" mem Set cmds working mem"); diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index b4a0e8be2..28b2c4ad2 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -2315,7 +2315,7 @@ int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) icmode_ext = -1; } - // some Icom rigs have seperate modes for VFOB/Sub + // some Icom rigs have separate modes for VFOB/Sub // switching to VFOB should not matter for the other rigs // This needs to be improved for RIG_TARGETABLE_MODE rigs if ((vfo == RIG_VFO_B || vfo == RIG_VFO_SUB) @@ -8810,7 +8810,7 @@ int icom_process_async_frame(RIG *rig, size_t frame_length, /* * the first 2 bytes must be 0xfe * the 3rd one 0x00 since this is transceive mode - * the 4rd one the emitter + * the 4th one the emitter * then the command number * the rest is data * and don't forget one byte at the end for the EOM diff --git a/rigs/icom/icom_defs.h b/rigs/icom/icom_defs.h index 6221bd740..eca2470df 100644 --- a/rigs/icom/icom_defs.h +++ b/rigs/icom/icom_defs.h @@ -193,7 +193,7 @@ #define S_SCAN_FDFON 0xAA /* Fix dF ON */ #define S_SCAN_NSLCT 0xB0 /* Set as non select channel */ #define S_SCAN_SLCT 0xB1 /* Set as select channel */ -#define S_SCAN_SL_NUM 0xB2 /* select programed mem scan 7800 only */ +#define S_SCAN_SL_NUM 0xB2 /* select programmed mem scan 7800 only */ #define S_SCAN_RSMOFF 0xD0 /* Set scan resume OFF */ #define S_SCAN_RSMONP 0xD1 /* Set scan resume ON + pause time */ #define S_SCAN_RSMON 0xD3 /* Set scan resume ON */ diff --git a/rigs/kenwood/k3.c b/rigs/kenwood/k3.c index 44f5aff48..0651cdfb3 100644 --- a/rigs/kenwood/k3.c +++ b/rigs/kenwood/k3.c @@ -1116,7 +1116,7 @@ int k3_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) err = k3_get_mode(rig, RIG_VFO_A, &tmodeA, &twidth); err2 = k3_get_mode(rig, RIG_VFO_B, &tmodeB, &twidth); - // we keep both vfos in the same mode -- any reason they should ever be differnet? If so, fix this + // we keep both vfos in the same mode -- any reason they should ever be different? If so, fix this // if we change mode on one VFO we'll also change the other if (err == RIG_OK && err2 == RIG_OK && tmodeA == mode && tmodeB == mode && width == RIG_PASSBAND_NOCHANGE) @@ -1570,7 +1570,7 @@ int k3_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_width) if (priv->is_k4d || priv->is_k4hd) { // split can get turned off when modes are changing - // so if the rig did this independtly of us we turn it back on + // so if the rig did this independently of us we turn it back on // even if the rig changes the split status should be the last thing we did if (priv->split) { strcat(cmd_m, "FT1;"); } diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 8571e123d..ac4fae565 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -932,7 +932,7 @@ int kenwood_open(RIG *rig) rig_debug(RIG_DEBUG_ERR, "%s: unknown id type (%s)...continuing\n", __func__, id); - // Malachite SDR gives no reponse to ID and is supposed to be TS480 compatible + // Malachite SDR gives no response to ID and is supposed to be TS480 compatible if (RIG_IS_MALACHITE) { strcpy(id, "ID020"); } } diff --git a/rigs/kit/dds60.c b/rigs/kit/dds60.c index 48715e55a..101b6f13f 100644 --- a/rigs/kit/dds60.c +++ b/rigs/kit/dds60.c @@ -369,7 +369,7 @@ int dds60_set_freq(RIG *rig, vfo_t vfo, freq_t freq) frg = (unsigned long)(((double)freq + priv->if_mix_freq) / osc_ref * 4294967296.0 + 0.5); - rig_debug(RIG_DEBUG_VERBOSE, "%s: word %lu, X6 multipler %d, phase %.2f\n", + rig_debug(RIG_DEBUG_VERBOSE, "%s: word %lu, X6 multiplier %d, phase %.2f\n", __func__, frg, priv->multiplier, priv->phase_step * PHASE_INCR); control = priv->multiplier ? 0x01 : 0x00; diff --git a/rigs/kit/elektor507.c b/rigs/kit/elektor507.c index 8530c244d..f41bb56e5 100644 --- a/rigs/kit/elektor507.c +++ b/rigs/kit/elektor507.c @@ -188,7 +188,7 @@ static const struct confparams elektor507_cfg_params[] = "10000000", RIG_CONF_NUMERIC, { .n = { 0, MHz(30), 1 } } }, { - TOK_XTALCAL, "xtal_cal", "Xtal Cal", "Cristal calibration", + TOK_XTALCAL, "xtal_cal", "Xtal Cal", "Crystal calibration", "132", RIG_CONF_NUMERIC, { .n = { 0, 255, 1 } } }, { RIG_CONF_END, NULL, } diff --git a/rigs/kit/si570avrusb.c b/rigs/kit/si570avrusb.c index c7535bc43..9f061d718 100644 --- a/rigs/kit/si570avrusb.c +++ b/rigs/kit/si570avrusb.c @@ -464,7 +464,7 @@ const struct rig_caps si570picusb_caps = * Funkamateur Sdr with Si570 * * Same USB interface as AVR-USB, except different product string - * and Oscilator correction may be stored on the device + * and Oscillator correction may be stored on the device * * http://www.funkamateur.de * ( BX- 200 ) diff --git a/rigs/pcr/pcr.c b/rigs/pcr/pcr.c index 7b79ce9af..0febeb334 100644 --- a/rigs/pcr/pcr.c +++ b/rigs/pcr/pcr.c @@ -1474,7 +1474,7 @@ pcr_set_volume(RIG *rig, vfo_t vfo, float level) * 80-ff Noise squelch + S meter squelch ... * Comparative S level = (squelch setting - 128) X 2 * - * Could do with some constatnts to add together to allow better (and more accurate) + * Could do with some constants to add together to allow better (and more accurate) * use of Hamlib API. Otherwise may get unexpected squelch settings if have to do by hand. */ diff --git a/rigs/prm80/prm80.c b/rigs/prm80/prm80.c index c1f9858de..1d31d9a20 100644 --- a/rigs/prm80/prm80.c +++ b/rigs/prm80/prm80.c @@ -81,7 +81,7 @@ MessageAide: DB "H",0Dh,0Ah DB " [I] = Erase and init RAM and EEPROM.",0Dh,0Ah DB " [K] = Set lock byte.",0Dh,0Ah DB " [L] = Print latch state.",0Dh,0Ah - DB " [M] = Edit external RAM manualy.",0Dh,0Ah + DB " [M] = Edit external RAM manually.",0Dh,0Ah DB " [N] = Set current channel.",0Dh,0Ah DB " [O] = Set volume.",0Dh,0Ah DB " [P] = Edit/Add channel.",0Dh,0Ah @@ -123,7 +123,7 @@ MessageAide: DB "H",0Dh,0Ah b4: PLL locked (Read only) b5: Long key push (Internal) b6: Key bounce (Internal) - b7: Force LCD refresh when set. Automaticaly cleared. + b7: Force LCD refresh when set. Automatically cleared. Channel state byte: b0: Shift enable when true diff --git a/rigs/yaesu/ft100.c b/rigs/yaesu/ft100.c index 1414aa7b3..f386e1a0e 100644 --- a/rigs/yaesu/ft100.c +++ b/rigs/yaesu/ft100.c @@ -931,7 +931,7 @@ int ft100_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) if (split) { rig_set_vfo(rig, RIG_VFO_A); } hl_usleep(100 * - 1000); // give ptt some time to do it's thing -- fake it was not reseting freq after tx + 1000); // give ptt some time to do its thing -- fake it was not resetting freq after tx break; default: diff --git a/rigs/yaesu/ft817.c b/rigs/yaesu/ft817.c index 2b1175db5..ec70d0fc6 100644 --- a/rigs/yaesu/ft817.c +++ b/rigs/yaesu/ft817.c @@ -127,7 +127,7 @@ struct ft817_priv_data /* freq & mode status */ struct timeval fm_status_tv; unsigned char fm_status[5]; /* 5 bytes, NOT related to YAESU_CMD_LENGTH */ - /* Digi mode is not part of regular fm_status reponse. + /* Digi mode is not part of regular fm_status response. * So keep track of it in a separate variable. */ unsigned char dig_mode; }; diff --git a/rigs/yaesu/ft980.h b/rigs/yaesu/ft980.h index 88519c818..0452bb63c 100644 --- a/rigs/yaesu/ft980.h +++ b/rigs/yaesu/ft980.h @@ -353,7 +353,7 @@ typedef struct _ft980_memory_t #define FT_980_STATUSFLAG_UPDN_MASK 0X30 #define FT_980_STATUSFLAG_CLAR_MASK 0x40 -/* op_vfo: VFO decode: Main, Gen, and 3 unsused AUX */ +/* op_vfo: VFO decode: Main, Gen, and 3 unused AUX */ #define FT980_VFO_HAM_SEL 0x80 #define FT980_VFO_GEN_SEL 0x00 #define FT980_VFO_AUX1_SEL 0x81 diff --git a/rotators/radant/radant.txt b/rotators/radant/radant.txt index c6d10a569..a1c60dd86 100644 --- a/rotators/radant/radant.txt +++ b/rotators/radant/radant.txt @@ -1,4 +1,4 @@ -Standart protocol for both El and Az axes. Working with russian Radant version 1.0 - 1.4: Радант AZV-1 +Standard protocol for both El and Az axes. Working with russian Radant version 1.0 - 1.4: Радант AZV-1 Serial port mode 9600 8N1. diff --git a/src/amplifier.c b/src/amplifier.c index 5fa23e93c..e295b475c 100644 --- a/src/amplifier.c +++ b/src/amplifier.c @@ -297,7 +297,7 @@ AMP *HAMLIB_API amp_init(amp_model_t amp_model) * \return RIG_OK if the operation has been successful, otherwise a **negative * value** if an error occurred (in which case, cause is set appropriately). * - * \retval RIG_OK Communication channel succesfully opened. + * \retval RIG_OK Communication channel successfully opened. * \retval RIG_EINVAL \a amp is NULL or inconsistent. * * \sa amp_init(), amp_close() diff --git a/src/locator.c b/src/locator.c index 31b787317..fce2b63e9 100644 --- a/src/locator.c +++ b/src/locator.c @@ -375,7 +375,7 @@ int HAMLIB_API dec2dms(double dec, * notation common on many GPS units. * * When passed a value < -180 or > 180, the value will be normalized - * within these limits and the sign set apropriately. + * within these limits and the sign set appropriately. * * Upon return dec2dmmm guarantees 0 >= \a degrees <= 180, * 0.0 >= \a minutes < 60.0. diff --git a/src/misc.c b/src/misc.c index 41bfda297..78d546b72 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1858,7 +1858,7 @@ vfo_t HAMLIB_API vfo_fixup2a(RIG *rig, vfo_t vfo, split_t split, return vfo_fixup(rig, vfo, split); } -// we're mappping our VFO here to work with either VFO A/B rigs or Main/Sub +// we're mapping our VFO here to work with either VFO A/B rigs or Main/Sub // Hamlib uses VFO_A and VFO_B as TX/RX as of 2021-04-13 // So we map these to Main/Sub as required vfo_t HAMLIB_API vfo_fixup(RIG *rig, vfo_t vfo, split_t split) diff --git a/src/rig.c b/src/rig.c index a7634963e..fe3c48076 100644 --- a/src/rig.c +++ b/src/rig.c @@ -506,7 +506,7 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model) strlen(caps->hamlib_check_rig_caps)) != 0) { rig_debug(RIG_DEBUG_ERR, - "%s: Error validating integrity of rig_caps\nPossible hamlib DLL incompatiblity\n", + "%s: Error validating integrity of rig_caps\nPossible hamlib DLL incompatibility\n", __func__); return (NULL); } @@ -7002,7 +7002,7 @@ int HAMLIB_API rig_cookie(RIG *rig, enum cookie_e cookie_cmd, char *cookie, int cookie_len) { // only 1 client can have the cookie so these can be static - // this should also prevent problems with DLLs & shared libraies + // this should also prevent problems with DLLs & shared libraries // the debug_msg is another non-thread-safe which this will help fix static char cookie_save[HAMLIB_COOKIE_SIZE]; // only one client can have the cookie @@ -7026,7 +7026,7 @@ int HAMLIB_API rig_cookie(RIG *rig, enum cookie_e cookie_cmd, char *cookie, return -RIG_EINVAL; // nothing to do } - /* Accesing cookie_save and time_last_used must be done with lock held. + /* Accessing cookie_save and time_last_used must be done with lock held. * So keep code simple and lock it during the whole operation. */ MUTEX_LOCK(mutex_rig_cookie); diff --git a/src/rotator.c b/src/rotator.c index f71197a5a..2af91c980 100644 --- a/src/rotator.c +++ b/src/rotator.c @@ -350,7 +350,7 @@ ROT *HAMLIB_API rot_init(rot_model_t rot_model) * \return RIG_OK if the operation has been successful, otherwise a **negative * value** if an error occurred (in which case, cause is set appropriately). * - * \retval RIG_OK Communication channel succesfully opened. + * \retval RIG_OK Communication channel successfully opened. * \retval RIG_EINVAL \a rot is NULL or inconsistent. * \retval RIG_ENIMPL Communication port type is not implemented yet. * @@ -635,7 +635,7 @@ int HAMLIB_API rot_cleanup(ROT *rot) * \brief Set the azimuth and elevation of the rotator. * * \param rot The #ROT handle. - * \param azimuth The azimuth to set in decimal degress. + * \param azimuth The azimuth to set in decimal degrees. * \param elevation The elevation to set in decimal degrees. * * Sets the azimuth and elevation of the rotator. @@ -933,7 +933,7 @@ int HAMLIB_API rot_move(ROT *rot, int direction, int speed) * * \return A pointer to static memory containing an ASCII nul terminated * string (C string) if the operation has been successful, otherwise NULL if - * \a rot is NULL or inconsisten or the rot_caps#get_info() capability is not + * \a rot is NULL or inconsistent or the rot_caps#get_info() capability is not * available. */ const char *HAMLIB_API rot_get_info(ROT *rot) diff --git a/src/settings.c b/src/settings.c index be85e625b..34c5efab3 100644 --- a/src/settings.c +++ b/src/settings.c @@ -1055,7 +1055,7 @@ HAMLIB_EXPORT(int) rig_settings_save(char *setting, void *value, case e_DOUBLE: dvalue = (double *)value; vformat = "%s=%f\n"; break; default: - rig_debug(RIG_DEBUG_ERR, "%s: Uknown valuetype=%d\n", __func__, valuetype); + rig_debug(RIG_DEBUG_ERR, "%s: Unknown valuetype=%d\n", __func__, valuetype); } if (fp == NULL) @@ -1076,7 +1076,7 @@ HAMLIB_EXPORT(int) rig_settings_save(char *setting, void *value, case e_DOUBLE: fprintf(fp, vformat, setting, *dvalue); break; default: - rig_debug(RIG_DEBUG_ERR, "%s: Uknown valuetype=%d\n", __func__, valuetype); + rig_debug(RIG_DEBUG_ERR, "%s: Unknown valuetype=%d\n", __func__, valuetype); } fclose(fp);