Skip to content

duty_cycle getter doesn't return what setter was given #52

@DrRob

Description

@DrRob

Hi, why does the setter have value + 1 in line 91?:

value = (value + 1) >> 4

There isn't a corresponding adjustment in the getter, so for example if I set duty_cycle to 0x7fff and then read it back I get 0x8000.

Thanks!
Rob.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions