From 8c72cc5749150dd32e1735b2c1e6572059e25e7c Mon Sep 17 00:00:00 2001 From: boarchuz <46267286+boarchuz@users.noreply.github.com> Date: Thu, 6 Feb 2020 16:22:26 +1100 Subject: [PATCH] Fix subtype in PartitionTable.find_by_type Fix ptype->subtype Closes https://github.com/espressif/esp-idf/pull/4723 --- components/partition_table/gen_esp32part.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/partition_table/gen_esp32part.py b/components/partition_table/gen_esp32part.py index 170750740..ac8f3af6a 100755 --- a/components/partition_table/gen_esp32part.py +++ b/components/partition_table/gen_esp32part.py @@ -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