demod: add terrible hack for timecode overflow

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-06-10 19:33:00 +08:00
parent 2674bdefe5
commit 142548e84c

View File

@ -94,6 +94,9 @@ static void make_nco(float32_t *i, float32_t *q)
}
// XXX MAKE SURE TO DEAL WITH TIMESTEP WRPAPING
if (timestep > bpsk_state.nco.samplerate)
timestep -= bpsk_state.nco.samplerate;
bpsk_state.nco.offset = timestep;
}