mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02: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:
@ -160,7 +160,7 @@ class PartitionTable(list):
|
|||||||
subtype = SUBTYPES[int(ptype)][subtype]
|
subtype = SUBTYPES[int(ptype)][subtype]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
try:
|
||||||
ptype = int(ptype, 0)
|
subtype = int(subtype, 0)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user