mirror of
https://github.com/jgoerzen/xbnet.git
synced 2025-01-11 15:08:21 -04:00
fix
This commit is contained in:
parent
2d02cc58ba
commit
bdc43bd75f
@ -50,7 +50,7 @@ pub fn stdintolorakiss(ls: &mut LoraStik, maxframesize: usize) -> io::Result<()>
|
|||||||
}
|
}
|
||||||
// OK, we've got it, now make sure it doesn't exceed the limit and transmit.
|
// OK, we've got it, now make sure it doesn't exceed the limit and transmit.
|
||||||
// We tripped off the FEND bytes. Add them back.
|
// We tripped off the FEND bytes. Add them back.
|
||||||
let mut txbuf = vec![0u8; res + 2];
|
let mut txbuf = Vec::new();
|
||||||
txbuf.push(FEND);
|
txbuf.push(FEND);
|
||||||
txbuf.extend_from_slice(&buf[0..res]);
|
txbuf.extend_from_slice(&buf[0..res]);
|
||||||
txbuf.push(FEND);
|
txbuf.push(FEND);
|
||||||
|
Loading…
Reference in New Issue
Block a user