mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
parttool: Fix regression when parsing binary partition data
Regression in a91de43537f8a76a78d9576d7ab0e2378c374f07
This commit is contained in:
parent
abe26a1c02
commit
8f15664be0
@ -96,6 +96,7 @@ class ParttoolTarget():
|
|||||||
partition_table = None
|
partition_table = None
|
||||||
with open(partition_table_file, "rb") as f:
|
with open(partition_table_file, "rb") as f:
|
||||||
input_is_binary = (f.read(2) == gen.PartitionDefinition.MAGIC_BYTES)
|
input_is_binary = (f.read(2) == gen.PartitionDefinition.MAGIC_BYTES)
|
||||||
|
f.seek(0)
|
||||||
if input_is_binary:
|
if input_is_binary:
|
||||||
partition_table = gen.PartitionTable.from_binary(f.read())
|
partition_table = gen.PartitionTable.from_binary(f.read())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user