From 5afc5d6fa361c69d97da01af8c4e73dbc9f79197 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Dec 2014 08:21:08 +1100 Subject: [PATCH] mavgen_python: revert crcbuf change this broke python2.7 support --- pymavlink/generator/mavgen_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymavlink/generator/mavgen_python.py b/pymavlink/generator/mavgen_python.py index 998a6bedea..e4b9c5074b 100644 --- a/pymavlink/generator/mavgen_python.py +++ b/pymavlink/generator/mavgen_python.py @@ -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))