Skip to content

Commit

Permalink
Merge pull request mavlink#436 from adegroote/python3
Browse files Browse the repository at this point in the history
[python3] try to compute properly the crc for python3
  • Loading branch information
LorenzMeier committed Sep 7, 2015
2 parents 158752f + bed8940 commit 1e47af1
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 1e47af1

Please sign in to comment.