X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/61c96b473ce4d5dec8c46235595c519e7f868cd5..refs/heads/master:/m17core/src/modem.rs diff --git a/m17core/src/modem.rs b/m17core/src/modem.rs index 35a23a7..fe57188 100644 --- a/m17core/src/modem.rs +++ b/m17core/src/modem.rs @@ -419,7 +419,7 @@ impl Modulator for SoftModulator { // if we have pre-TX padding to accommodate TxDelay then expend that first if self.tx_delay_padding > 0 { - let len = out.len().max(self.tx_delay_padding); + let len = out.len().min(self.tx_delay_padding); self.tx_delay_padding -= len; for x in 0..len { out[x] = 0;