Merge branch 'bugfix/py273_gen_esp32part' into 'master'

partition_table: Fix encoding for Python 2.7.3

See merge request idf/esp-idf!3330
This commit is contained in:
Anton Maklakov 2018-09-20 19:06:52 +08:00
commit 3004744f2c

View file

@ -355,7 +355,7 @@ class PartitionDefinition(object):
if self.name in all_subtype_names and SUBTYPES.get(self.type, {}).get(self.name, "") != self.subtype:
critical("WARNING: Partition has name '%s' which is a partition subtype, but this partition has non-matching type 0x%x and subtype 0x%x. Mistake in partition table?" % (self.name, self.type, self.subtype))
STRUCT_FORMAT = "<2sBBLL16sL"
STRUCT_FORMAT = b"<2sBBLL16sL"
@classmethod
def from_binary(cls, b):