summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
Diffstat (limited to 'fxotune.c')
-rw-r--r--fxotune.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fxotune.c b/fxotune.c
index 54ebed9..312ecca 100644
--- a/fxotune.c
+++ b/fxotune.c
@@ -174,7 +174,7 @@ static int acim_tune(int whichzap, char *dialstr)
for (acim = 0; acim < 16; acim++) {
float freq_results[15];
- int needtoreset = 0;
+ int needtoreset = 9;
coefs.acim = acim;
if (ioctl(whichzap, WCTDM_SET_ECHOTUNE, &coefs)) {
@@ -203,6 +203,7 @@ static int acim_tune(int whichzap, char *dialstr)
fprintf(stderr, "Cannot bring fd %d off hook", whichzap);
return -1;
}
+ sleep(2); // KD - Added to ensure that dial can actually takes place
memset(&dop, 0, sizeof(dop));
dop.op = ZT_DIAL_OP_REPLACE;
@@ -365,7 +366,7 @@ set:
continue;
}
- printf("Tuning module %d", i + 1);
+ printf("Tuning module %d\n", i + 1);
res = acim_tune(fd, argv[2]); /* Shouldn't matter what digit we press */
if (res < 0)
printf("Failure!\n");