Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow 4 arguments to bpsk_costas_loop_cc #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions csdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ int clone_(int bufsize_param)
clone_buffer = (unsigned char*)malloc(bufsize_param*sizeof(unsigned char));
for(;;)
{
fread(clone_buffer, sizeof(unsigned char), bufsize_param, stdin);
if(fread(clone_buffer, sizeof(unsigned char), bufsize_param, stdin) <= 0) {
exit(0);
}
fwrite(clone_buffer, sizeof(unsigned char), bufsize_param, stdout);
TRY_YIELD;
}
Expand Down Expand Up @@ -2841,7 +2843,7 @@ int main(int argc, char *argv[])
if(argc<=3) return badsyntax("need required parameter (damping_factor)");
sscanf(argv[3],"%f",&damping_factor);

int decision_directed = !!(argc>4 && (!strcmp(argv[4], "--dd") || !strcmp(argv[5], "--decision_directed")));
int decision_directed = !!(argc>4 && (!strcmp(argv[4], "--dd") || !strcmp(argv[4], "--decision_directed")));
if(decision_directed) { errhead(); fprintf(stderr, "decision directed mode\n"); }

int output_error = !!(argc>4+decision_directed && (!strcmp(argv[4+decision_directed], "--output_error")));
Expand Down