summaryrefslogtreecommitdiff
path: root/wcfxo.c
diff options
context:
space:
mode:
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;