Skip to content

Commit 1caae62

Browse files
committed
modified: airspy_wsprd.c
modified: wsprd.c modified: wsprd.h
1 parent c098444 commit 1caae62

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

airspy_wsprd.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ int rx_callback(airspy_transfer_t* transfer) {
101101
const static float zCoef[33] = {
102102
-0.0027772683, -0.0005058826, 0.0049745750, -0.0034059318,
103103
-0.0077557814, 0.0139375423, 0.0039896935, -0.0299394142,
104-
0.0162250643, 0.0405130860, -0.0580746013, -0.0272104968,
105-
0.1183705475, -0.0306029022, -0.2011241667, 0.1615898423,
106-
0.5000000000,
107-
0.1615898423, -0.2011241667, -0.0306029022, 0.1183705475,
104+
0.0162250643, 0.0405130860, -0.0580746013, -0.0272104968,
105+
0.1183705475, -0.0306029022, -0.2011241667, 0.1615898423,
106+
0.5000000000,
107+
0.1615898423, -0.2011241667, -0.0306029022, 0.1183705475,
108108
-0.0272104968, -0.0580746013, 0.0405130860, 0.0162250643,
109109
-0.0299394142, 0.0039896935, 0.0139375423, -0.0077557814,
110110
-0.0034059318, 0.0049745750, -0.0005058826, -0.0027772683
@@ -255,8 +255,8 @@ static void *wsprDecoder(void *arg) {
255255
/* WSPR decoder use buffers of 45000 samples (hardcoded)
256256
(120 sec max @ 375sps = 45000 samples)
257257
*/
258-
static float iSamples[45000]={0};
259-
static float qSamples[45000]={0};
258+
static float iSamples[45000]= {0};
259+
static float qSamples[45000]= {0};
260260
static uint32_t samples_len;
261261
int32_t n_results=0;
262262

@@ -280,7 +280,7 @@ static void *wsprDecoder(void *arg) {
280280
*/
281281
memcpy(dec_options.date, rx_options.date, sizeof(rx_options.date));
282282
memcpy(dec_options.uttime, rx_options.uttime, sizeof(rx_options.uttime));
283-
283+
284284
/* DEBUG -- Save samples
285285
printf("Writing file\n");
286286
FILE* fd = NULL;

wsprd.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ void subtract_signal2(float *id, float *qd, long np,
412412

413413
//***************************************************************************
414414
int32_t wspr_decode(float *idat, float *qdat, uint32_t npoints,
415-
struct decoder_options options, struct decoder_results *decodes,
416-
int32_t *n_results) {
415+
struct decoder_options options, struct decoder_results *decodes,
416+
int32_t *n_results) {
417417

418418
int32_t i,j,k;
419419
uint32_t metric, maxcycles, cycles, maxnp;
@@ -426,7 +426,7 @@ int32_t wspr_decode(float *idat, float *qdat, uint32_t npoints,
426426
char call[13]= {0};
427427
char loc[7]= {0};
428428
char pwr[3]= {0};
429-
429+
430430
int32_t delta,verbose=0;
431431
int32_t writenoise=0,wspr_type=2, ipass;
432432
int32_t shift1, lagmin, lagmax, lagstep, worth_a_try, not_decoded;
@@ -469,7 +469,7 @@ int32_t wspr_decode(float *idat, float *qdat, uint32_t npoints,
469469
}
470470

471471
FILE *fp_fftw_wisdom_file, *fhash;
472-
472+
473473
if ((fp_fftw_wisdom_file = fopen("wspr_wisdom.dat", "r"))) { //Open FFTW wisdom
474474
fftwf_import_wisdom_from_file(fp_fftw_wisdom_file);
475475
fclose(fp_fftw_wisdom_file);

wsprd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ void subtract_signal(float *id, float *qd, long np,
6969
void subtract_signal2(float *id, float *qd, long np,
7070
float f0, int32_t shift0, float drift0, uint8_t* channel_symbols);
7171
int32_t wspr_decode(float *idat, float *qdat, uint32_t npoints,
72-
struct decoder_options options, struct decoder_results *decodes,
73-
int32_t *n_results);
72+
struct decoder_options options, struct decoder_results *decodes,
73+
int32_t *n_results);

0 commit comments

Comments
 (0)