From b04af7920ccf2e373aa236846070a63d756970a0 Mon Sep 17 00:00:00 2001 From: chrysn Date: Sat, 25 Feb 2023 13:37:54 +0100 Subject: [PATCH] efm32/dac: Shift instead of masking Closes: https://github.com/RIOT-OS/RIOT/issues/19317 --- cpu/efm32/periph/dac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/efm32/periph/dac.c b/cpu/efm32/periph/dac.c index cd7c7b7301..7d5a412385 100644 --- a/cpu/efm32/periph/dac.c +++ b/cpu/efm32/periph/dac.c @@ -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)