aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-08 12:10:29 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:00:55 +0100
commita5fd375237cd7d4f9a1d60608c50720b3498f72d (patch)
tree5a271342ec9b29e40efd2f3664ee6176b4eaf03f /src/amps
parentbf0abd627d42a6603cd8c98442539eb7c779615c (diff)
Fixed typos
Diffstat (limited to 'src/amps')
-rw-r--r--src/amps/amps.c8
-rw-r--r--src/amps/dsp.c2
-rw-r--r--src/amps/main.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/amps/amps.c b/src/amps/amps.c
index fd8b03a..1923a30 100644
--- a/src/amps/amps.c
+++ b/src/amps/amps.c
@@ -410,7 +410,7 @@ int amps_create(int channel, enum amps_chan_type chan_type, const char *audiodev
/* check if channel type matches channel number */
ct = amps_channel2type(channel);
if (ct == CHAN_TYPE_CC && chan_type != CHAN_TYPE_PC && chan_type != CHAN_TYPE_CC_PC && chan_type != CHAN_TYPE_CC_PC_VC) {
- PDEBUG(DAMPS, DEBUG_ERROR, "Channel number %d belongs to a control channel, but your channel type '%s' requires to be on a voice channel number. Some phone may reject this.\n", channel, chan_type_long_name(chan_type));
+ PDEBUG(DAMPS, DEBUG_NOTICE, "Channel number %d belongs to a control channel, but your channel type '%s' requires to be on a voice channel number. Some phone may reject this, but all my phones don't.\n", channel, chan_type_long_name(chan_type));
}
if (ct == CHAN_TYPE_VC && chan_type != CHAN_TYPE_VC) {
PDEBUG(DAMPS, DEBUG_ERROR, "Channel number %d belongs to a voice channel, but your channel type '%s' requires to be on a control channel number. Please use correct channel.\n", channel, chan_type_long_name(chan_type));
@@ -430,7 +430,7 @@ int amps_create(int channel, enum amps_chan_type chan_type, const char *audiodev
/* check if we use combined voice channel hack */
if (chan_type == CHAN_TYPE_CC_PC_VC) {
- PDEBUG(DAMPS, DEBUG_NOTICE, "You selected '%s'. This is a hack, but the only way to use control channel and voice channel on one transceiver. Some phones may reject this.\n", chan_type_long_name(chan_type));
+ PDEBUG(DAMPS, DEBUG_NOTICE, "You selected '%s'. This is a hack, but the only way to use control channel and voice channel on one transceiver. Some phones may reject this, but all my phones don't.\n", chan_type_long_name(chan_type));
}
amps = calloc(1, sizeof(amps_t));
@@ -1046,7 +1046,7 @@ again:
case TRANS_CALL_MT_ASSIGN_SEND:
vc = assign_voice_channel(trans);
if (vc) {
- PDEBUG_CHAN(DAMPS, DEBUG_INFO, "Assignment complete, next: sending altering on VC\n");
+ PDEBUG_CHAN(DAMPS, DEBUG_INFO, "Assignment complete, next: sending alerting on VC\n");
trans->chan = 0;
trans->msg_type = 0;
trans->ordq = 0;
@@ -1088,7 +1088,7 @@ again:
amps_go_idle(amps);
goto again;
case TRANS_CALL_MT_ALERT:
- PDEBUG_CHAN(DAMPS, DEBUG_INFO, "Sending altering\n");
+ PDEBUG_CHAN(DAMPS, DEBUG_INFO, "Sending alerting\n");
return trans;
default:
return NULL;
diff --git a/src/amps/dsp.c b/src/amps/dsp.c
index 4b7e08b..7fcabcc 100644
--- a/src/amps/dsp.c
+++ b/src/amps/dsp.c
@@ -350,7 +350,7 @@ static int fsk_encode(amps_t *amps, char bit)
} while (phase < 256.0);
phase -= 256.0;
}
- /* ramp up */
+ /* ramp down */
do {
*spl++ = ramp_down[(int)phase];
phase += bitstep;
diff --git a/src/amps/main.c b/src/amps/main.c
index da4a37f..b95b9b5 100644
--- a/src/amps/main.c
+++ b/src/amps/main.c
@@ -47,7 +47,7 @@ int tolerant = 0;
void print_help(const char *arg0)
{
- print_help_common(arg0, "-p -d -F yes | no [-S sid=<sid>]");
+ print_help_common(arg0, "-p -d -F yes | no [-S sid=<sid>] ");
/* - - */
printf(" -T --channel-type <channel type> | list\n");
printf(" Give channel type, use 'list' to get a list. (default = '%s')\n", chan_type_short_name(chan_type[0]));