Commit 6b853437 authored by Erik Strand's avatar Erik Strand

Remove irrelevant #ifs

parent aadc0347
......@@ -38,15 +38,6 @@ uint32_t bm_analogRead( uint32_t pin )
REMAP_ANALOG_PIN_ID(pin);
#endif
#if (SAMC21 || SAMD51)
Adc* ADC;
if ( (g_APinDescription[pin].ulPeripheralAttribute & PER_ATTR_ADC_MASK) == PER_ATTR_ADC_ALT ) {
ADC = ADC1;
} else {
ADC = ADC0;
}
#endif
// pinPeripheral now handles disabling the DAC (if active)
if ( pinPeripheral(pin, PIO_ANALOG_ADC) == RET_STATUS_OK )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment