Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Check firmware version for temperature support? #33

Closed
@caternuson

Description

@caternuson

Not really an issue, just a potential option.

Currently the temperature property is marked as deprecated to deal with the feature being removed from the chip. See #30 and #32.

Another approach might be to query the version information registers:
image
and then raise exception if a newer rev:

if version > THE_LAST_VERSION_THAT_HAD_TEMPERATURE:
    raise RuntimeError("Feature not supported for this chip version")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions