diff --git a/src/main.rs b/src/main.rs index efbdf95..9bf327c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ use eframe::egui::{self, CentralPanel, Color32, RichText}; use tokio::sync::RwLock; use tokio::sync::mpsc::{Receiver, Sender, channel}; -const BAUD_RATE: u32 = 1000; +const BAUD_RATE: u32 = 1200; const SAMPLE_RATE: u32 = 48000; // Modulation parameters @@ -150,7 +150,7 @@ impl FSKReceiver { // Frame reconstruction let dphi = self .phase_lowpass - .next_real((self.last_sample.conj() * iq).arg()); + .next_real((self.last_sample * iq.conj()).arg()); self.last_sample = iq; if let Some((bit_sample, eye)) = self.elg.next_eye(dphi) { let _ = self.eye_sender.send(eye).await;