mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +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_channel_config[line].index,
|
||||
value & 0xfff);
|
||||
value >> 4);
|
||||
}
|
||||
|
||||
void dac_poweron(dac_t line)
|
||||
|
Loading…
Reference in New Issue
Block a user