aboutsummaryrefslogtreecommitdiffstats
path: root/main/tdd.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-05 20:15:37 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-05 20:15:37 +0000
commit4bbefa5c47eab04b79e3a52623ac76134f7c0fca (patch)
treeddee686c81ed490fcfdf3e78bd03050e650d2528 /main/tdd.c
parent0fca2eac77c4043e6fd7abf1fa6358fbfdc988ef (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: http://svn.digium.com/svn/asterisk/trunk@48276 f38db490-d61c-443f-a65b-d21fe96a405b
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;
}