Skip to content

ota.status.status() missing support for nfs_keys subtype #7

@hasanen

Description

@hasanen

Hey

started to test this library as it looks useful and perfect for our use case.

In our partition table we have partition with subtype nvs_keys and this makes ``ota.status.status()` break

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ota/status.py", line 138, in status
  File "ota/status.py", line 84, in partition_table_print
KeyError: 4

I did some testing at it seems that changing following

{0: "ota", 1: "phy", 2: "nvs", 129: "fat"}, # DATA subtypes

to

{0: "ota", 1: "phy", 2: "nvs", 4: "nvs_keys", 129: "fat"},

Solves the issue.

I can do PR, but I'm not sure what is the build process of building corresponding .mpy file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions