summaryrefslogtreecommitdiff
path: root/main/tdd.c
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2006-12-05 20:15:37 +0000
committerJason Parker <jparker@digium.com>2006-12-05 20:15:37 +0000
commit87f81679ee28efd8ca30a0462bc37741724918b8 (patch)
treeddee686c81ed490fcfdf3e78bd03050e650d2528 /main/tdd.c
parent33c09cbcfaf2b2062ee01053aabdcf26ed267fca (diff)
Expand on r48273 (from issue 8506), to translate more of the fskmodem stuff to English.
r48273 dealt with the comments and such, this deals with the code itself. (This couldn't have been easily done if it weren't for 48273 - thanks again for that merbanan) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/tdd.c')
-rw-r--r--main/tdd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/tdd.c b/main/tdd.c
index bb7a5746e..7ac9153b3 100644
--- a/main/tdd.c
+++ b/main/tdd.c
@@ -108,7 +108,7 @@ struct tdd_state *tdd_new(void)
tdd->fskd.hdlc = 0; /* Async */
tdd->fskd.nbit = 5; /* 5 bits */
tdd->fskd.nstop = 1.5; /* 1.5 stop bits */
- tdd->fskd.paridad = 0; /* No parity */
+ tdd->fskd.parity = 0; /* No parity */
tdd->fskd.bw=0; /* Filter 75 Hz */
tdd->fskd.f_mark_idx = 0; /* 1400 Hz */
tdd->fskd.f_space_idx = 1; /* 1800 Hz */
@@ -157,15 +157,15 @@ int tdd_feed(struct tdd_state *tdd, unsigned char *ubuf, int len)
c = res = 0;
while (mylen >= 1320) { /* has to have enough to work on */
olen = mylen;
- res = fsk_serie(&tdd->fskd, buf, &mylen, &b);
+ res = fsk_serial(&tdd->fskd, buf, &mylen, &b);
if (mylen < 0) {
- ast_log(LOG_ERROR, "fsk_serie made mylen < 0 (%d) (olen was %d)\n", mylen, olen);
+ ast_log(LOG_ERROR, "fsk_serial made mylen < 0 (%d) (olen was %d)\n", mylen, olen);
free(obuf);
return -1;
}
buf += (olen - mylen);
if (res < 0) {
- ast_log(LOG_NOTICE, "fsk_serie failed\n");
+ ast_log(LOG_NOTICE, "fsk_serial failed\n");
free(obuf);
return -1;
}