mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-04 23:50:09 +01:00
remove buffer used only in dump command
This commit is contained in:
parent
772e210ada
commit
47fec0b024
4
dsp.c
4
dsp.c
|
|
@ -21,8 +21,10 @@
|
|||
#include <arm_math.h>
|
||||
#include "nanovna.h"
|
||||
|
||||
#ifdef ENABLED_DUMP
|
||||
int16_t samp_buf[SAMPLE_LEN];
|
||||
int16_t ref_buf[SAMPLE_LEN];
|
||||
#endif
|
||||
|
||||
const int16_t sincos_tbl[48][2] = {
|
||||
{ 10533, 31029 }, { 27246, 18205 }, { 32698, -2143 }, { 24636, -21605 },
|
||||
|
|
@ -59,8 +61,10 @@ dsp_process(int16_t *capture, size_t length)
|
|||
uint32_t sr = *p++;
|
||||
int16_t ref = sr & 0xffff;
|
||||
int16_t smp = (sr>>16) & 0xffff;
|
||||
#ifdef ENABLED_DUMP
|
||||
ref_buf[i] = ref;
|
||||
samp_buf[i] = smp;
|
||||
#endif
|
||||
int32_t s = sincos_tbl[i][0];
|
||||
int32_t c = sincos_tbl[i][1];
|
||||
samp_s += smp * s / 16;
|
||||
|
|
|
|||
Loading…
Reference in a new issue