mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
partition_table: Extend the get_partition_info command
A manufactory tool needs to retrieve info about partitions. With a new flag - "--part_list" we can get a list of partitions with the same type/subtype and easily iterate by it. - name and flag arguments - added flag "--part_list" to get a list of partitions with the same type/subtype - save prev behavior of the get_partition_info command (return the only first item) - added host test
This commit is contained in:
@@ -166,8 +166,8 @@ class PartitionTable(list):
|
||||
|
||||
for p in self:
|
||||
if p.type == ptype and p.subtype == subtype:
|
||||
return p
|
||||
return None
|
||||
yield p
|
||||
return
|
||||
|
||||
def find_by_name(self, name):
|
||||
for p in self:
|
||||
|
Reference in New Issue
Block a user