From b137f9e31903387fca8db94910ed6a3f8dddd4ac Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Feb 2021 09:04:56 +1100 Subject: [PATCH] waf: fixed embed error on python2 --- Tools/ardupilotwaf/embed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/embed.py b/Tools/ardupilotwaf/embed.py index 723b4f243c..d833b40c97 100644 --- a/Tools/ardupilotwaf/embed.py +++ b/Tools/ardupilotwaf/embed.py @@ -33,7 +33,7 @@ def embed_file(out, f, idx, embedded_name, uncompressed): contents += bytes(chr(0xff)) print("Padded %u bytes for %s to %u" % (pad, embedded_name, len(contents))) - crc = crc32(contents) + crc = crc32(bytearray(contents)) write_encode(out, 'static const uint8_t ap_romfs_%u[] = {' % idx) compressed = tempfile.NamedTemporaryFile()