Skip to content

On boards with BATTERY_PIN defined, check for missing voltage divider net #626

Description

@geeksville

at power up:
enable internal pullup and see if the raw ADC value is saturated at Vcc
then enable internal pulldown and see if raw ADC value is stuck at ground

If both of these are true the voltage divider resistors must not be installed. Disable battery sensing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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