summaryrefslogtreecommitdiff
path: root/wcfxo.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-11-17 22:09:40 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-11-17 22:09:40 +0000
commitee752c08b777e79b763780700eaed522d571c29f (patch)
treea9a80b0679ca88cbef4d87e6df46d3bbad0981ed /wcfxo.c
parentbbb8de18d0e28b295a1d33937959d7e7806dd39e (diff)
Fix up a missing one
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@277 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxo.c')
-rwxr-xr-xwcfxo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wcfxo.c b/wcfxo.c
index 1e47285..372d538 100755
--- a/wcfxo.c
+++ b/wcfxo.c
@@ -322,12 +322,12 @@ static inline void wcfxo_receiveprep(struct wcfxo *wc, unsigned char ints)
}
/* Look for pegging to indicate ringing */
sample = (short)(le32_to_cpu(readchunk[(x << 1) + (1 - wc->alt)]) >> 16);
- if ((sample > 32000) && (peg != 1)) {
+ if ((sample > 32000) && (wc->peg != 1)) {
if ((wc->pegtimer < PEGTIME) && (wc->pegtimer > MINPEGTIME))
wc->pegcount++;
wc->pegtimer = 0;
wc->peg = 1;
- } else if ((sample < -32000) && (peg != -1)) {
+ } else if ((sample < -32000) && (wc->peg != -1)) {
if ((wc->pegtimer < PEGTIME) && (wc->pegtimer > MINPEGTIME))
wc->pegcount++;
wc->pegtimer = 0;