use std::fs::File;
use std::io::{self, Read, Write};
use std::path::PathBuf;
-use std::sync::mpsc::{channel, sync_channel, Receiver, Sender, SyncSender, TryRecvError};
use std::sync::RwLock;
+use std::sync::mpsc::{Receiver, Sender, SyncSender, TryRecvError, channel, sync_channel};
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
use thiserror::Error;
}
SoundmodemEvent::BasebandInput(b) => {
for sample in &*b {
- if let Some(frame) = demodulator.demod(*sample) {
+ if let Some((frame, _)) = demodulator.demod(*sample) {
tnc.handle_frame(frame);
loop {
let n = tnc.read_kiss(&mut buf);