fdfdgsdfsdf fixed checksum
This commit is contained in:
parent
80086dca66
commit
1b082de8de
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ impl UnitBoardVersionPacket<'_> {
|
||||||
for v in &self.unit_board_version {
|
for v in &self.unit_board_version {
|
||||||
s.append(&mut v.as_bytes().to_vec());
|
s.append(&mut v.as_bytes().to_vec());
|
||||||
}
|
}
|
||||||
//s.push(calc_checksum(&s));
|
s.push(calc_checksum(&[s.as_slice(),vec![0x80].as_slice()].concat()));
|
||||||
if self.side {s.push(104)} else {s.push(118)};
|
//if self.side {s.push(104)} else {s.push(118)};
|
||||||
s
|
s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue