Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 2301ba9

Browse files
committed
Reformat
1 parent 11c0e89 commit 2301ba9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

labs/bpsk31-demod/src/main.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use hound::{WavReader, WavSpec, WavWriter};
22
use k9api_dsp::{
33
early_late::EarlyLate,
4-
filter::{Passband, Window, WindowMethod, Fir},
4+
filter::{Fir, Passband, Window, WindowMethod},
55
iq::IQ,
66
math::Real,
77
pll::Costas,
@@ -108,12 +108,15 @@ fn main() {
108108
baseband.write_sample((bb.i * 32767.0) as i16).unwrap();
109109
baseband.write_sample((bb.q * 32767.0) as i16).unwrap();
110110

111-
112111
if let Some(bit_sample) = timing.process(matched_filter.process_sample(bb)) {
113112
// TODO phase correction and value decision
114113
// TODO varicode decoding
115-
symbols.write_sample((bit_sample.i * 32767.0) as i16).unwrap();
116-
symbols.write_sample((bit_sample.q * 32767.0) as i16).unwrap();
114+
symbols
115+
.write_sample((bit_sample.i * 32767.0) as i16)
116+
.unwrap();
117+
symbols
118+
.write_sample((bit_sample.q * 32767.0) as i16)
119+
.unwrap();
117120
}
118121
}
119122
baseband.flush().unwrap();

0 commit comments

Comments
 (0)