|
@ -447,7 +447,7 @@ fn generate_psomessage_impl(msg_cmd: u8, name: syn::Ident, attrs: &Vec<AttrType> |
|
|
|
|
|
|
|
|
let mut fullbuf = Vec::new();
|
|
|
let mut fullbuf = Vec::new();
|
|
|
fullbuf.push(#msg_cmd);
|
|
|
fullbuf.push(#msg_cmd);
|
|
|
fullbuf.push((buf.len() as u8 + 2) / 4);
|
|
|
|
|
|
|
|
|
fullbuf.push(((buf.len() + 2) / 4) as u8);
|
|
|
fullbuf.extend_from_slice(&mut buf);
|
|
|
fullbuf.extend_from_slice(&mut buf);
|
|
|
|
|
|
|
|
|
fullbuf
|
|
|
fullbuf
|
|
|