X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/bc4b6ea4290384cd8c380af2a9014f162fd43683..3903e719137aba15d30dd58b8d917965ec602400:/m17app/src/serial.rs?ds=inline diff --git a/m17app/src/serial.rs b/m17app/src/serial.rs index d3eec19..8abb4b9 100644 --- a/m17app/src/serial.rs +++ b/m17app/src/serial.rs @@ -26,7 +26,9 @@ impl SerialPtt { pub fn new(port_name: &str, pin: PttPin) -> Self { // TODO: error handling let port = serialport::new(port_name, 9600).open().unwrap(); - Self { port, pin } + let mut s = Self { port, pin }; + s.ptt_off(); + s } }