Skip to content

readSupplyVoltage() clobbers DAC0REFSEL #1271

@jamcinnes2

Description

@jamcinnes2

hi This is really a feature request. The readSupplyVoltage() function in megaTinyCore.cpp does this:
VREF.CTRLA = VREF_ADC0REFSEL_1V5_gc;

I'm also using DACREF0 so I used this instead:
VREF.CTRLA |= VREF_ADC0REFSEL_1V5_gc;

Maybe this would be a useful change?

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