The DAC init was using the ADC pinmap. This fixes that.

pull/12473/head
Alan Mock 2020-02-19 22:33:07 -08:00
parent 829a3cded3
commit b3c0ef81dc
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ static void _analogout_init_direct(dac_t *obj, const PinMap *pinmap)
void analogout_init(dac_t *obj, PinName pin) void analogout_init(dac_t *obj, PinName pin)
{ {
int peripheral = (int)pinmap_peripheral(pin, PinMap_ADC); int peripheral = (int)pinmap_peripheral(pin, PinMap_DAC);
const PinMap static_pinmap = {pin, peripheral, 0}; const PinMap static_pinmap = {pin, peripheral, 0};