Fix subtype in PartitionTable.find_by_type

Fix ptype->subtype

Closes https://github.com/espressif/esp-idf/pull/4723
This commit is contained in:
boarchuz 2020-02-06 16:22:26 +11:00 committed by Roland Dobai
parent a590348af2
commit 8c72cc5749
1 changed files with 1 additions and 1 deletions

View File

@ -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