Rolled back to the original csdr flowcontrol. The new one made some segmentation faults.

This commit is contained in:
ha7ilm 2016-02-14 11:21:48 +01:00
parent 277075b397
commit 26d10e6df8

7
csdr.c
View file

@ -1402,7 +1402,7 @@ int main(int argc, char *argv[])
} }
} }
#endif #endif
/*
if(!strcmp(argv[1],"flowcontrol")) if(!strcmp(argv[1],"flowcontrol"))
{ {
if(argc<=3) return badsyntax("need required parameters (data_rate, reads_per_seconds)"); if(argc<=3) return badsyntax("need required parameters (data_rate, reads_per_seconds)");
@ -1424,9 +1424,9 @@ int main(int argc, char *argv[])
usleep(flowcontrol_sleep); usleep(flowcontrol_sleep);
TRY_YIELD; TRY_YIELD;
} }
}*/ }
#if 0
if(!strcmp(argv[1],"flowcontrol")) if(!strcmp(argv[1],"flowcontrol"))
{ {
if(argc<=3) return badsyntax("need required parameters (data_rate, reads_per_seconds)"); if(argc<=3) return badsyntax("need required parameters (data_rate, reads_per_seconds)");
@ -1525,6 +1525,7 @@ int main(int argc, char *argv[])
TRY_YIELD; TRY_YIELD;
} }
} }
#endif
if(!strcmp(argv[1],"through")) if(!strcmp(argv[1],"through"))
{ {