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 {
s.append(&mut v.as_bytes().to_vec());
}
//s.push(calc_checksum(&s));
if self.side {s.push(104)} else {s.push(118)};
s.push(calc_checksum(&[s.as_slice(),vec![0x80].as_slice()].concat()));
//if self.side {s.push(104)} else {s.push(118)};
s
}
}