kopia lustrzana https://github.com/rs1729/RS
minor bug fixes
rodzic
c4ed09cfbb
commit
a29d3f83f3
|
@ -495,7 +495,11 @@ int headcmp(int symlen, char *hdr, int len, unsigned int mvp, int inv, int optio
|
||||||
int get_fqofs(int hdrlen, unsigned int mvp, float *freq, float *snr) {
|
int get_fqofs(int hdrlen, unsigned int mvp, float *freq, float *snr) {
|
||||||
int j;
|
int j;
|
||||||
int buf_start;
|
int buf_start;
|
||||||
int presamples = 256*samples_per_bit;
|
int presamples;
|
||||||
|
|
||||||
|
if (option_iq)
|
||||||
|
{
|
||||||
|
presamples = 256*samples_per_bit;
|
||||||
|
|
||||||
if (presamples > M_DFT) presamples = M_DFT;
|
if (presamples > M_DFT) presamples = M_DFT;
|
||||||
|
|
||||||
|
@ -521,6 +525,8 @@ int get_fqofs(int hdrlen, unsigned int mvp, float *freq, float *snr) {
|
||||||
|
|
||||||
*freq = df;
|
*freq = df;
|
||||||
*snr = SNRdB;
|
*snr = SNRdB;
|
||||||
|
}
|
||||||
|
else return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue