Skip to content

Commit

Permalink
[python3] try to compute properly the crc for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Degroote committed Aug 31, 2015
1 parent 47a6737 commit bed8940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymavlink/generator/mavgen_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def pack(self, mav, crc_extra, payload):
self._msgbuf = self._header.pack() + payload
crc = x25crc(self._msgbuf[1:])
if ${crc_extra}: # using CRC extra
crc.accumulate_str(chr(crc_extra))
crc.accumulate_str(struct.pack('B', crc_extra))
self._crc = crc.crc
self._msgbuf += struct.pack('<H', self._crc)
return self._msgbuf
Expand Down

0 comments on commit bed8940

Please sign in to comment.