summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmec3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mec3.h b/mec3.h
index 3df3f50..e28c66b 100755
--- a/mec3.h
+++ b/mec3.h
@@ -150,7 +150,7 @@ static inline short echo_can_update(echo_can_state_t *ec, short ref, short sig)
ec->hcntr--;
/* Store error */
- buf_add(&ec->e, sig, ec->pos, ec->taps);
+ buf_add(&ec->e, u, ec->pos, ec->taps);
if ((ec->ref.max > MIN_TX_ENERGY) &&
(ec->sig.max > MIN_RX_ENERGY) &&
(ec->e.max > (ec->ref.max >> MAX_ATTENUATION_SHIFT))) {