mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 17:43:51 +01:00
efm32/dac: Shift instead of masking
Closes: https://github.com/RIOT-OS/RIOT/issues/19317
This commit is contained in:
parent
9d1d4bb1b2
commit
b04af7920c
@ -66,7 +66,7 @@ void dac_set(dac_t line, uint16_t value)
|
|||||||
|
|
||||||
DAC_ChannelOutputSet(dac_config[dev].dev,
|
DAC_ChannelOutputSet(dac_config[dev].dev,
|
||||||
dac_channel_config[line].index,
|
dac_channel_config[line].index,
|
||||||
value & 0xfff);
|
value >> 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dac_poweron(dac_t line)
|
void dac_poweron(dac_t line)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user