demod: add terrible hack for timecode overflow
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
2674bdefe5
commit
142548e84c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user