Skip to content

Commit

Permalink
mavgen_python: revert crcbuf change
Browse files Browse the repository at this point in the history
this broke python2.7 support
  • Loading branch information
Andrew Tridgell committed Dec 2, 2014
1 parent d00170d commit 5afc5d6
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 @@ -399,7 +399,7 @@ def decode(self, msgbuf):
raise MAVError('Unable to unpack MAVLink CRC: %s' % emsg)
crcbuf = msgbuf[1:-2]
if ${crc_extra}: # using CRC extra
crcbuf.append(struct.pack('B', crc_extra))
crcbuf.append(crc_extra)
crc2 = x25crc(crcbuf)
if crc != crc2.crc:
raise MAVError('invalid MAVLink CRC in msgID %u 0x%04x should be 0x%04x' % (msgId, crc, crc2.crc))
Expand Down

0 comments on commit 5afc5d6

Please sign in to comment.