Skip to content

Simple typo 0x -> 0b in set_watchdog_threshold #1

Description

@jfikar

There is a simple error on the line https://github.com/ecodina/python_as3935/blob/master/as3935/AS3935.py#L144

It is:

self.write_byte(0x01, (self.read_byte(0x01) & 0x11110000) | value)

Should be:

self.write_byte(0x01, (self.read_byte(0x01) & 0b11110000) | value)

The error causes reset of NF_LEV to 0, when you use set_watchdog_threshold().

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