diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-11-17 22:09:40 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-11-17 22:09:40 +0000 |
commit | ee752c08b777e79b763780700eaed522d571c29f (patch) | |
tree | a9a80b0679ca88cbef4d87e6df46d3bbad0981ed /wcfxo.c | |
parent | bbb8de18d0e28b295a1d33937959d7e7806dd39e (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-x | wcfxo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |