Fixed many typos in output and source code comments

This commit is contained in:
Martin Hauke
2019-07-15 21:14:52 +02:00
committed by Andreas Eversberg
parent c357ab5ad5
commit 75765d49b7
30 changed files with 49 additions and 49 deletions

View File

@@ -184,7 +184,7 @@ void amps_number2min(const char *number, uint32_t *min1, uint16_t *min2)
int i;
if (nlen != 10) {
fprintf(stderr, "illegal lenght %d. Must be 10, aborting!", nlen);
fprintf(stderr, "illegal length %d. Must be 10, aborting!", nlen);
abort();
}
@@ -580,7 +580,7 @@ int amps_create(int channel, enum amps_chan_type chan_type, const char *audiodev
amps->pre_emphasis = pre_emphasis;
amps->de_emphasis = de_emphasis;
/* the AMPS uses a frequency rage of 300..3000 Hz, but we still use the default low pass filter, wich is not too far above */
/* the AMPS uses a frequency rage of 300..3000 Hz, but we still use the default low pass filter, which is not too far above */
rc = init_emphasis(&amps->estate, samplerate, CUT_OFF_EMPHASIS_DEFAULT, CUT_OFF_HIGHPASS_DEFAULT, CUT_OFF_LOWPASS_DEFAULT);
if (rc < 0)
goto error;

View File

@@ -39,7 +39,7 @@
* The average level change offsets of the dotting sequence is used to set the
* window for the first bit. When all samples for the window are received, a
* raise in level is detected as 1, fall in level is detected as 0. This is done
* by substracting the average sample value of the left side of the window by
* by subtracting the average sample value of the left side of the window by
* the average sample value of the right side. After the bit has been detected,
* the samples for the next window will be received and detected.
*
@@ -108,7 +108,7 @@
#define AMPS_BITRATE 10000
/* for some reason, 4000 Hz deviation works better */
#define TACS_DBM0_DEVIATION 4000.0 /* 2300 Hz deviation at 1 kHz (according to panasonic manual) */
#define TACS_MAX_DEVIATION 6400.0 /* (according to texas intruments and other sources) */
#define TACS_MAX_DEVIATION 6400.0 /* (according to texas instruments and other sources) */
#define TACS_MAX_MODULATION 9500.0 /* (according to panasonic manual) */
#define TACS_FSK_DEVIATION (6400.0 / TACS_DBM0_DEVIATION) /* no emphasis */
#define TACS_SAT_DEVIATION (1700.0 / TACS_DBM0_DEVIATION) /* no emphasis (panasonic / TI) */

View File

@@ -2221,7 +2221,7 @@ struct amps_ie_desc amps_ie_desc[] = {
{ AMPS_IE_DMAC, "DMAC", "Digital mobile attenuation code field", ie_cmac },
{ AMPS_IE_DTX, "DTX", "Discontinuous-Transmission field", ie_yes },
{ AMPS_IE_DTX_Support, "DTX Support", "Indicates the nature of DTX supported on an analog voice", ie_dtx_support },
{ AMPS_IE_DVCC, "DVCC", "Digital Verfication Color Code", NULL},
{ AMPS_IE_DVCC, "DVCC", "Digital Verification Color Code", NULL},
{ AMPS_IE_Data_Part, "Data Part", "Identifies the Data Port associated with a data/fax call", ie_data_part },
{ AMPS_IE_Data_Privacy, "Data Privacy", "This field indicates whether or not Data Privacy is supported", ie_yes },
{ AMPS_IE_E, "E", "Extended address field", ie_yes },
@@ -3699,7 +3699,7 @@ int amps_decode_frame(amps_t *amps, const char *bits, int count, double level, d
} else if (count == 240) {
more = amps_decode_bits_recc(amps, bits, 0);
} else {
PDEBUG_CHAN(DFRAME, DEBUG_ERROR, "Frame with unknown lenght = %d, please fix!\n", count);
PDEBUG_CHAN(DFRAME, DEBUG_ERROR, "Frame with unknown length = %d, please fix!\n", count);
}
return more;