Removed surplus zero byte
This commit is contained in:
parent
ceb4dc035f
commit
8e371bc6a2
2 changed files with 1 additions and 2 deletions
|
|
@ -38,7 +38,6 @@ impl Encoder<HostMessage> for ProtocolCodec {
|
|||
fn encode(&mut self, item: HostMessage, dst: &mut BytesMut) -> Result<(), Self::Error> {
|
||||
let msg_bytes = to_stdvec_cobs(&item).unwrap();
|
||||
dst.put(msg_bytes.as_slice());
|
||||
dst.put_u8(0);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ mod app {
|
|||
bootloader::reboot_to_bootloader();
|
||||
}
|
||||
},
|
||||
Err(err) => defmt::error!("Unable to parse host message"),
|
||||
Err(err) => defmt::error!("Unable to parse host message: {}", err),
|
||||
};
|
||||
|
||||
*buffer = Vec::<u8, USB_BUFFER_SIZE>::from_slice(rest).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue