Skip to content

RFC Lots of magic numbers in HT-CT62's in getBattMilliVolts() #2587

@notmasteryet

Description

@notmasteryet

The code is too magical at

return ((6.52 * raw) / 1024.0) * 1000;

Can you provide some comments and/or adjust the value for standard divider.

The one I can think of is 2.2M/300k but that looks wrong. It will be nice to not change the code and just add the divider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions