mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fix subtype in PartitionTable.find_by_type
Fix ptype->subtype Closes https://github.com/espressif/esp-idf/pull/4723
This commit is contained in:
parent
313c1ed1ba
commit
8c88f0f1f6
@ -160,7 +160,7 @@ class PartitionTable(list):
|
||||
subtype = SUBTYPES[int(ptype)][subtype]
|
||||
except KeyError:
|
||||
try:
|
||||
ptype = int(ptype, 0)
|
||||
subtype = int(subtype, 0)
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user