X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/ac1b1b703bd012b82404951be0637dabe4606660..HEAD:/m17core/src/modem.rs?ds=inline 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;