X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/eca97054b9edb6258d1392240d12b0772a10f20d..3903e719137aba15d30dd58b8d917965ec602400:/m17core/src/tnc.rs diff --git a/m17core/src/tnc.rs b/m17core/src/tnc.rs index a74499b..b46958c 100644 --- a/m17core/src/tnc.rs +++ b/m17core/src/tnc.rs @@ -217,6 +217,8 @@ impl SoftTnc { pub fn set_now(&mut self, now_samples: u64) { self.now = now_samples; + // TODO: expose this to higher layer so we can schedule a precise delay + // rather than waiting for some soundcard I/O event if let State::TxEndingAtTime(time) = self.state { if now_samples >= time { self.ptt = false; @@ -502,6 +504,7 @@ struct OutgoingKiss { sent: usize, } +#[allow(clippy::large_enum_variant)] enum State { /// Nothing happening. We may have TX data queued but we won't act on it until CSMA opens up. Idle,