Fix typos
This commit is contained in:
parent
6a5af9aeac
commit
0593f7d066
|
@ -42,7 +42,7 @@
|
|||
#define CHUNK_DURATION 0.010 /* 10 ms */
|
||||
|
||||
// FIXME: how long until we detect a tone?
|
||||
#define TONE_DETECT_TH 8 /* chunk intervals to detect continous tone */
|
||||
#define TONE_DETECT_TH 8 /* chunk intervals to detect continuous tone */
|
||||
|
||||
/* carrier loss detection */
|
||||
#define LOSS_INTERVAL 100 /* filter steps (chunk durations) for one second interval */
|
||||
|
@ -152,7 +152,7 @@ static void fsk_receive_tone(anetz_t *anetz, int tone, int goodtone, double leve
|
|||
if (anetz->tone_count >= TONE_DETECT_TH)
|
||||
audio_reset_loss(&anetz->sender.loss);
|
||||
if (anetz->tone_count == TONE_DETECT_TH) {
|
||||
PDEBUG(DDSP, DEBUG_INFO, "Detecting continous %.0f Hz tone. (level = %d%%)\n", fsk_tones[anetz->tone_detected], (int)(level * 100.0 + 0.5));
|
||||
PDEBUG(DDSP, DEBUG_INFO, "Detecting continuous %.0f Hz tone. (level = %d%%)\n", fsk_tones[anetz->tone_detected], (int)(level * 100.0 + 0.5));
|
||||
anetz_receive_tone(anetz, anetz->tone_detected);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#define FILTER_STEP 0.001 /* step every 1 ms */
|
||||
#define METERING_HZ 2900 /* metering pulse frequency */
|
||||
|
||||
#define TONE_DETECT_TH 70 /* 70 milliseconds to detect continous tone */
|
||||
#define TONE_DETECT_TH 70 /* 70 milliseconds to detect continuous tone */
|
||||
|
||||
/* carrier loss detection */
|
||||
#define LOSS_INTERVAL 1000 /* filter steps (milliseconds) for one second interval */
|
||||
|
@ -156,7 +156,7 @@ static void fsk_receive_tone(bnetz_t *bnetz, int bit, int goodtone, double level
|
|||
if (bnetz->tone_count >= TONE_DETECT_TH)
|
||||
audio_reset_loss(&bnetz->sender.loss);
|
||||
if (bnetz->tone_count == TONE_DETECT_TH) {
|
||||
PDEBUG(DDSP, DEBUG_INFO, "Detecting continous tone: %.0f:Level=%3.0f%% Quality=%3.0f%%\n", fsk_bits[bnetz->tone_detected], level * 100.0, quality * 100.0);
|
||||
PDEBUG(DDSP, DEBUG_INFO, "Detecting continuous tone: %.0f:Level=%3.0f%% Quality=%3.0f%%\n", fsk_bits[bnetz->tone_detected], level * 100.0, quality * 100.0);
|
||||
bnetz_receive_tone(bnetz, bnetz->tone_detected);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -644,7 +644,7 @@ int call_in_setup(int callref, const char *callerid, const char *dialing)
|
|||
if (!strcmp(dialing, "0"))
|
||||
dialing = "operator";
|
||||
|
||||
PDEBUG(DCALL, DEBUG_INFO, "Incomming call from '%s' to '%s'\n", callerid, dialing);
|
||||
PDEBUG(DCALL, DEBUG_INFO, "Incoming call from '%s' to '%s'\n", callerid, dialing);
|
||||
|
||||
if (use_mncc_sock) {
|
||||
uint8_t buf[sizeof(struct gsm_mncc)];
|
||||
|
|
|
@ -114,12 +114,12 @@ static int mncc_accept(void)
|
|||
if (rc < 0) {
|
||||
if (errno == EWOULDBLOCK)
|
||||
return 0;
|
||||
PDEBUG(DMNCC, DEBUG_ERROR, "Failed to accept incomming connection (errno=%d).\n", errno);
|
||||
PDEBUG(DMNCC, DEBUG_ERROR, "Failed to accept incoming connection (errno=%d).\n", errno);
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (mncc_sock > 0) {
|
||||
PDEBUG(DMNCC, DEBUG_NOTICE, "Rejecting multiple incomming connections.\n");
|
||||
PDEBUG(DMNCC, DEBUG_NOTICE, "Rejecting multiple incoming connections.\n");
|
||||
close(rc);
|
||||
return -EIO;
|
||||
}
|
||||
|
|
|
@ -1078,7 +1078,7 @@ static void rx_mt_autoanswer(nmt_t *nmt, frame_t *frame)
|
|||
break;
|
||||
if ((frame->line_signal & 0xf) != 12)
|
||||
break;
|
||||
PDEBUG(DNMT, DEBUG_INFO, "Received acknowlege to autoanswer.\n");
|
||||
PDEBUG(DNMT, DEBUG_INFO, "Received acknowledge to autoanswer.\n");
|
||||
nmt_new_state(nmt, STATE_MT_COMPLETE);
|
||||
nmt->tx_frame_count = 0;
|
||||
call_in_answer(nmt->sender.callref, &nmt->subscriber.country);
|
||||
|
|
Loading…
Reference in New Issue