Skip to content

Commit

Permalink
Merge pull request #23 from pa3gsb/master
Browse files Browse the repository at this point in the history
debug prints removed
  • Loading branch information
g0orx committed Jan 17, 2022
2 parents 0474753 + a365286 commit 49084f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion fir.c
Expand Up @@ -267,7 +267,6 @@ double *fir_read (int N, const char *filename, int rtype, double scale)
int i;
double I, Q;
double *c_impulse = (double *) malloc0 (N * sizeof (complex));
fprintf(stderr, "FILE OPEN !!!!!!!!!!!!!!!!!!!!!");
file = fopen (filename, "r");
for (i = 0; i < N; i++)
{
Expand Down
5 changes: 1 addition & 4 deletions iobuffs.c
Expand Up @@ -477,10 +477,7 @@ void fexchange0 (int channel, double* in, double* out, int* error)
a->r1_inidx = 0;

EnterCriticalSection (&a->r2_ControlSection);
if (a->r2_havesamps >= a->out_size) {
fprintf(stderr, "do it samples %d size %d \n", a->r2_havesamps, a->out_size);
doit = 1;
}
if (a->r2_havesamps >= a->out_size) doit = 1;
if ((a->r2_havesamps -= a->out_size) < 0) a->r2_havesamps = 0;
LeaveCriticalSection (&a->r2_ControlSection);
if (a->bfo) WaitForSingleObject (a->Sem_OutReady, INFINITE);
Expand Down

2 comments on commit 49084f5

@r0sal
Copy link

@r0sal r0sal commented on 49084f5 Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was trying install linux hpsdr on macbook. In readme file for lihpsdr write: "make -f Makefile.mac install", but in package "https://github.com/g0orx/wdsp.git" have't file "Makefile.mac". I try compile wdsp with Makefile "make -f Makefile install" and get error.
cc -I /include -I /include/linux -g -O3 -D _GNU_SOURCE -c -o linux_port.o linux_port.c
In file included from linux_port.c:29:
./comm.h:50:10: fatal error: 'fftw3.h' file not found
#include "fftw3.h"
^~~~~~~~~
1 error generated.
make: *** [linux_port.o] Error 1
Solved
copy fftw3.h file from /wdsp/fftw/fftw_x64 or fftw_x86 to /wdsp directory.

@dl1ycf
Copy link
Contributor

@dl1ycf dl1ycf commented on 49084f5 Apr 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to install fftw on your mac. If using homebrew, the package name is simply "fftw" . The current fftw version is 3.3.

Please sign in to comment.