fdfdgsdfsdf fixed checksum

This commit is contained in:
Kyan Wanschers 2024-02-25 20:49:19 +01:00
parent 80086dca66
commit 1b082de8de

View file

@ -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
} }
} }