Skip to content

Commit 4598e65

Browse files
committed
Fix spelling errors
Fixed with: codespell --ignore-words-list=dout,feets,fo,inout,ist,ot,parm,usng src --write-changes --interactive=2 and manual editing.
1 parent 0bd31ae commit 4598e65

17 files changed

+31
-31
lines changed

src/appserver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static void poll_timing_test (void)
320320
*
321321
* data - Should look something like this for incoming:
322322
* *** CONNECTED to Station xxx\r
323-
* and ths for my request being accepted:
323+
* and this for my request being accepted:
324324
* *** CONNECTED With Station xxx\r
325325
*
326326
* session_id - Session id to be used in data transfer and

src/audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static int poll_sndio (struct sio_hdl *hdl, int events)
821821
revents = sio_revents (hdl, pfds);
822822
} while (!(revents & (events | POLLHUP)));
823823

824-
/* unrecoverable error occured */
824+
/* unrecoverable error occurred */
825825
if (revents & POLLHUP) {
826826
text_color_set(DW_COLOR_ERROR);
827827
dw_printf ("waited for %s, POLLHUP received\n", (events & POLLIN) ? "POLLIN" : "POLLOUT");

src/cm108.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static void usage(void)
304304
dw_printf ("which ones can be used for GPIO PTT.\n");
305305
#endif
306306
dw_printf ("\n");
307-
dw_printf ("Specify the HID device path to test the PTT fuction.\n");
307+
dw_printf ("Specify the HID device path to test the PTT function.\n");
308308
dw_printf ("Its state should change once per second.\n");
309309
#if __WIN32__
310310
dw_printf ("You might need to quote the path depending on the command processor.\n");
@@ -854,7 +854,7 @@ void cm108_find_ptt (char *output_audio_device, char *ptt_device, int ptt_devic
854854
*
855855
* Future: For our initial implementation we are making the simplifying
856856
* restriction of using only one GPIO pin per device and limit
857-
* configuratin to PTT only.
857+
* configuration to PTT only.
858858
* Longer term, we might want to have DCD, and maybe other
859859
* controls thru the same chip.
860860
* In this case, we would need to retain bit masks for each

src/decode_aprs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void decode_aprs (decode_aprs_t *A, packet_t pp, int quiet, int third_party)
213213
// This must not be strict because the addresses in third party payload doesn't
214214
// need to adhere to the AX.25 address format (i.e. 6 upper case alphanumeric.)
215215
// SSID can be 2 alphanumeric characters.
216-
// Addresses can include lower case, e.g. q contruct.
216+
// Addresses can include lower case, e.g. q construct.
217217

218218
// e.g. WR2X-2>APRS,WA1PLE-13*:}
219219
// K1BOS-B>APOSB,TCPIP,WR2X-2*:@122015z4221.42ND07111.93W&/A=000000SharkRF openSPOT3 MMDVM446.025 MA/SW
@@ -1589,7 +1589,7 @@ static void aprs_message (decode_aprs_t *A, unsigned char *info, int ilen, int q
15891589
char colon; /* : */
15901590
char message[256-1-9-1]; /* Officially up to 67 characters for message text. */
15911591
/* Relaxing seemingly arbitrary restriction here; it doesn't need to fit on a punched card. */
1592-
/* Wouldn't surprize me if others did not pay attention to the limit. */
1592+
/* Wouldn't surprise me if others did not pay attention to the limit. */
15931593
/* Optional { followed by 1-5 alphanumeric characters for message number */
15941594

15951595
/* If the first character is '?' it is a Directed Station Query. */

src/demod_9600.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static inline float agc (float in, float fast_attack, float slow_decay, float *p
133133
* upsample - Factor to upsample the incoming stream.
134134
* After a lot of experimentation, I discovered that
135135
* it works better if the data is upsampled.
136-
* This reduces the jitter for PLL syncronization.
136+
* This reduces the jitter for PLL synchronization.
137137
*
138138
* baud - Data rate in bits per second.
139139
*
@@ -244,7 +244,7 @@ void demod_9600_init (enum modem_t modem_type, int original_sample_rate, int ups
244244
// Here is the general idea.
245245
//
246246
// Suppose the input samples are 1 2 3 4 5 6 7 8 9 ...
247-
// Filter coefficents are a b c d e f g h i ...
247+
// Filter coefficients are a b c d e f g h i ...
248248
//
249249
// With original sampling rate, the filtering would involve multiplying and adding:
250250
//

src/demod_afsk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ void demod_afsk_init (int samples_per_sec, int baud, int mark_freq,
588588
*
589589
* First, let's take a look at Track 1 of the TNC test CD. Here the receiver
590590
* has a flat response. We find the mark/space strength ratios very from 0.53 to 1.38
591-
* with a median of 0.81. This in in line with expections because most
591+
* with a median of 0.81. This is in line with expectations because most
592592
* transmitters add pre-emphasis to boost the higher audio frequencies.
593593
* Track 2 should more closely resemble what comes out of the speaker on a typical
594594
* transceiver. Here we see a ratio from 1.73 to 3.81 with a median of 2.48.
@@ -706,7 +706,7 @@ void demod_afsk_process_sample (int chan, int subchan, int sam, struct demodulat
706706
// Rather than trying to find the best threshold location, use multiple
707707
// slicer thresholds in parallel.
708708
// The best slicing point will vary from packet to packet but should
709-
// remain abount the same or a given packet.
709+
// remain about the same for a given packet.
710710

711711
// We are not performing the AGC step here but still want the envelope
712712
// for caluculating the confidence level (or quality) of the sample.

src/dns_sd_avahi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ void dns_sd_announce (struct misc_config_s *mc)
241241
/* Allocate a new client */
242242
client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error);
243243

244-
/* Check wether creating the client object succeeded */
244+
/* Check whether creating the client object succeeded */
245245
if (!client) {
246246
text_color_set(DW_COLOR_ERROR);
247247
dw_printf(PRINT_PREFIX "Failed to create Avahi client: %s\n", avahi_strerror(error));

src/encode_aprs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static int set_norm_position (char symtab, char symbol, double dlat, double dlon
125125
* height - Feet.
126126
* gain - dBi.
127127
*
128-
* course - Degress, 0 - 360 (360 equiv. to 0).
128+
* course - Degrees, 0 - 360 (360 equiv. to 0).
129129
* Use G_UNKNOWN for none or unknown.
130130
* speed - knots.
131131
*
@@ -343,7 +343,7 @@ static int phg_data_extension (int power, int height, int gain, char *dir, char
343343
*
344344
* Purpose: Fill in parts of the course & speed data extension.
345345
*
346-
* Inputs: course - Degress, 0 - 360 (360 equiv. to 0).
346+
* Inputs: course - Degrees, 0 - 360 (360 equiv. to 0).
347347
* Use G_UNKNOWN for none or unknown.
348348
*
349349
* speed - knots.
@@ -494,7 +494,7 @@ static int frequency_spec (float freq, float tone, float offset, char *presult)
494494
* gain - dB. Not clear if it is dBi or dBd.
495495
* dir - Directivity: N, NE, etc., omni.
496496
*
497-
* course - Degress, 0 - 360 (360 equiv. to 0).
497+
* course - Degrees, 0 - 360 (360 equiv. to 0).
498498
* Use G_UNKNOWN for none or unknown.
499499
* speed - knots. // TODO: should distinguish unknown(not revevant) vs. known zero.
500500
*
@@ -636,7 +636,7 @@ int encode_position (int messaging, int compressed, double lat, double lon, int
636636
* gain - dB. Not clear if it is dBi or dBd.
637637
* dir - Direction: N, NE, etc., omni.
638638
*
639-
* course - Degress, 0 - 360 (360 equiv. to 0).
639+
* course - Degrees, 0 - 360 (360 equiv. to 0).
640640
* Use G_UNKNOWN for none or unknown.
641641
* speed - knots.
642642
*

src/il2p_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int il2p_encode_frame (packet_t pp, int max_fec, unsigned char *iout)
8383
out_len = IL2P_HEADER_SIZE + IL2P_HEADER_PARITY;
8484

8585
if (e == 0) {
86-
// Sucess. No info part.
86+
// Success. No info part.
8787
return (out_len);
8888
}
8989

src/il2p_header.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static int get_field (unsigned char *hdr, int bit_num, int lsb_index, int width)
122122

123123

124124
// AX.25 'I' and 'UI' frames have a protocol ID which determines how the
125-
// information part should be interpretted.
125+
// information part should be interpreted.
126126
// Here we squeeze the most common cases down to 4 bits.
127127
// Return -1 if translation is not possible. Fall back to type 0 header in this case.
128128

@@ -299,7 +299,7 @@ int il2p_type_1_header (packet_t pp, int max_fec, unsigned char *hdr)
299299

300300
if (frame_type == frame_type_U_UI) {
301301
SET_UI(hdr, 1); // I guess this is how we distinguish 'I' and 'UI'
302-
// on the receving end.
302+
// on the receiving end.
303303
int pid = encode_pid(pp);
304304
if (pid < 0) return (-1);
305305
SET_PID(hdr, pid);
@@ -320,7 +320,7 @@ int il2p_type_1_header (packet_t pp, int max_fec, unsigned char *hdr)
320320
// 1 1 1 Not valid (earlier protocol version)
321321
//
322322
// APRS does not mention how to set these bits and all 4 combinations
323-
// are seen in the wild. Apparently these are ignord on receive and no
323+
// are seen in the wild. Apparently these are ignored on receive and no
324324
// one cares. Here we copy from the C bit in the destination address.
325325
// It should be noted that the case of both C bits being the same can't
326326
// be represented so the il2p encode/decode bit not produce exactly the

0 commit comments

Comments
 (0)