diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-14 19:56:43 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-14 19:56:43 +0000 |
commit | bcc943582e724112a6615cb24c8a58a28e3df45d (patch) | |
tree | 4a5b418c2d419d5c423f4cff1cf0f4d453032caa | |
parent | 4809a129141e72982d50c29644cec080d4fce125 (diff) |
Enable the fxotune.vals output only if debug is set
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@767 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | fxotune.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -303,10 +303,12 @@ static int acim_tune(int whichzap, char *dialstr) float acim_results[16]; - outfile = fopen("/tmp/fxotune.vals", "w"); - if (!outfile) { - fprintf(stdout, "Cannot create /tmp/fxotune.vals\n"); - return -1; + if (debug) { + outfile = fopen("/tmp/fxotune.vals", "w"); + if (!outfile) { + fprintf(stdout, "Cannot create /tmp/fxotune.vals\n"); + return -1; + } } /* Set echo settings */ |