X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/9058451e46e4d36264282abe381aa9b6fd2c773f..4cfda08117c4288a5408d45db1ef4be82f4facaa:/m17core/src/decode.rs diff --git a/m17core/src/decode.rs b/m17core/src/decode.rs index 76c40d3..115ff63 100755 --- a/m17core/src/decode.rs +++ b/m17core/src/decode.rs @@ -62,6 +62,7 @@ pub(crate) fn sync_burst_correlation(target: [i8; 8], samples: &[f32]) -> (f32, if gain < SYNC_MIN_GAIN { return (f32::MAX, gain, shift); } + let mut diff = 0.0; for i in 0..8 { let sym_diff = (((samples[i * 10] - shift) / gain) - target[i] as f32).abs();