commit 1d02ca9bad4722ee06db81573977907b6e564a0e
parent 0532e8b548f2ec390f59be64eb97bf7c6b6afaf7
Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 29 Aug 2012 11:47:51 +0200
Adding some debug messages.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
@@ -182,6 +182,9 @@ int main(int argc, char **argv)
exit(1);
}
+ if (debug)
+ fprintf(stderr, "Output = %d; channels = %d\n", output, nbch);
+
if (port) {
if (init_serv(port))
exit(1);
@@ -206,7 +209,7 @@ int main(int argc, char **argv)
break;
for (ind = 0; ind < len;) {
- for (i = 0; i < nbch; i++,ind++) {
+ for (i = 0; i < nbch; i++, ind++) {
if (esel[i]) {
nbit[i] += getbit(sample[ind], &r[i],
0);
@@ -233,3 +236,4 @@ int main(int argc, char **argv)
exit(0);
}
+