X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/bc4b6ea4290384cd8c380af2a9014f162fd43683..8d1ce395337cf7d508500b13c574eaeb401f1e77:/m17core/src/modem.rs diff --git a/m17core/src/modem.rs b/m17core/src/modem.rs index fe57188..b459826 100644 --- a/m17core/src/modem.rs +++ b/m17core/src/modem.rs @@ -65,9 +65,9 @@ impl Demodulator for SoftDemodulator { return None; } - let mut burst_window = [0f32; 71]; - for i in 0..71 { - let c = (self.rx_cursor + i) % 1920; + let mut burst_window = [0f32; 8]; + for i in 0..8 { + let c = (self.rx_cursor + (i * 10)) % 1920; burst_window[i] = self.rx_win[c]; }