X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/2fb25de49daca6ddff6f5af13bcf7c314aafafb3..64599440f241f7bb897a95b72ed7130231966518:/tools/m17rt-mod/src/main.rs diff --git a/tools/m17rt-mod/src/main.rs b/tools/m17rt-mod/src/main.rs index 6a3c527..104d83e 100644 --- a/tools/m17rt-mod/src/main.rs +++ b/tools/m17rt-mod/src/main.rs @@ -2,7 +2,7 @@ use m17app::app::M17App; use m17app::link_setup::M17Address; use m17app::serial::{PttPin, SerialPtt}; use m17app::soundcard::Soundcard; -use m17app::soundmodem::Soundmodem; +use m17app::soundmodem::{NullErrorHandler, Soundmodem}; use m17codec2::WavePlayer; use std::path::PathBuf; @@ -10,7 +10,12 @@ pub fn mod_test() { let soundcard = Soundcard::new("plughw:CARD=Device,DEV=0").unwrap(); soundcard.set_tx_inverted(true); let ptt = SerialPtt::new("/dev/ttyUSB0", PttPin::Rts).unwrap(); - let soundmodem = Soundmodem::new(soundcard.input(), soundcard.output(), ptt); + let soundmodem = Soundmodem::new( + soundcard.input(), + soundcard.output(), + ptt, + NullErrorHandler::new(), + ); let app = M17App::new(soundmodem); app.start().unwrap(); std::thread::sleep(std::time::Duration::from_secs(1));