aboutsummaryrefslogtreecommitdiffstats
path: root/src/jolly
diff options
context:
space:
mode:
authorMartin Hauke <mardnh@gmx.de>2019-07-15 21:14:52 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2019-07-15 21:14:52 +0200
commit75765d49b735f3a998a5c0ee4b372b4d1da7576c (patch)
tree37c6044b327de55a343e9ae4da882cc2ee133a9e /src/jolly
parentc357ab5ad53aac6a469aef77c42332918670620a (diff)
Fixed many typos in output and source code comments
Diffstat (limited to 'src/jolly')
-rw-r--r--src/jolly/dsp.c4
-rw-r--r--src/jolly/dsp.h2
-rw-r--r--src/jolly/jolly.c10
-rw-r--r--src/jolly/main.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/src/jolly/dsp.c b/src/jolly/dsp.c
index 00407eb..e85d37b 100644
--- a/src/jolly/dsp.c
+++ b/src/jolly/dsp.c
@@ -143,9 +143,9 @@ void dsp_cleanup_sender(jolly_t *jolly)
}
}
-void set_speech_string(jolly_t *jolly, char anouncement, const char *number)
+void set_speech_string(jolly_t *jolly, char announcement, const char *number)
{
- jolly->speech_string[0] = anouncement;
+ jolly->speech_string[0] = announcement;
jolly->speech_string[1] = '\0';
strncat(jolly->speech_string, number, sizeof(jolly->speech_string) - 1);
jolly->speech_digit = 0;
diff --git a/src/jolly/dsp.h b/src/jolly/dsp.h
index c27e225..6afa3ce 100644
--- a/src/jolly/dsp.h
+++ b/src/jolly/dsp.h
@@ -2,6 +2,6 @@
void dsp_init(void);
int dsp_init_sender(jolly_t *jolly, int nbfm, double squelch_db, int repeater);
void dsp_cleanup_sender(jolly_t *jolly);
-void set_speech_string(jolly_t *jolly, char anouncement, const char *number);
+void set_speech_string(jolly_t *jolly, char announcement, const char *number);
void reset_speech_string(jolly_t *jolly);
diff --git a/src/jolly/jolly.c b/src/jolly/jolly.c
index 51b06a5..d235903 100644
--- a/src/jolly/jolly.c
+++ b/src/jolly/jolly.c
@@ -88,7 +88,7 @@
* | '#' received | stop timer
* | | call setup
* | | if call setup fails:
- * | | play release anouncement
+ * | | play release announcement
* | | go to state RELEASED
* | | go to state CALL
* | |
@@ -98,18 +98,18 @@
* CALL | '*' received | start timer T-DIAL2
* | | go to state CALL-DIALING
* | |
- * | call release | play release anouncement
+ * | call release | play release announcement
* | | go to state RELEASED
* | |
* -------------+-----------------------+--------------------------------------
* CALL-DIALING | '#' received | stop timer
* | | call release
- * | | play release anouncement
+ * | | play release announcement
* | | go to state RELEASED
* | |
* | timeout | go state CALL
* | |
- * | call release | play release anouncement
+ * | call release | play release announcement
* | | go to state RELEASED
* | |
* -------------+-----------------------+--------------------------------------
@@ -121,7 +121,7 @@
* | call release | go to state IDLE
* | |
* -------------+-----------------------+--------------------------------------
- * RELEASED | end of anouncement | go to state IDLE
+ * RELEASED | end of announcement | go to state IDLE
* | |
*/
diff --git a/src/jolly/main.c b/src/jolly/main.c
index 3ec19b7..4fcbb6b 100644
--- a/src/jolly/main.c
+++ b/src/jolly/main.c
@@ -93,7 +93,7 @@ static int handle_options(int short_option, int argi, char **argv)
string_ul = strsep(&string, ",");
string_step = strsep(&string, ",");
if (!string_dl || !string_ul || !string_step) {
- fprintf(stderr, "Please give 3 values for --frequency, seperated by comma and no space!\n");
+ fprintf(stderr, "Please give 3 values for --frequency, separated by comma and no space!\n");
exit(0);
}
dl_freq = atof(string_dl);