From 666a89221b5737c9f26d450be00287c16a5bcf8a Mon Sep 17 00:00:00 2001 From: Caspar Friedrich Date: Wed, 3 Apr 2024 19:44:01 +0200 Subject: [PATCH] drivers: adc: tla2021: Fix reference voltage This fixes the problem that `adc_raw_to_millivolts` only returns half of the actual voltage. Signed-off-by: Caspar Friedrich --- drivers/adc/adc_tla2021.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/adc/adc_tla2021.c b/drivers/adc/adc_tla2021.c index 8c68c8b81e..c86e558781 100644 --- a/drivers/adc/adc_tla2021.c +++ b/drivers/adc/adc_tla2021.c @@ -288,7 +288,7 @@ static int tla2021_init(const struct device *dev) static const struct adc_driver_api tla2021_driver_api = { .channel_setup = tla2021_channel_setup, .read = tla2021_read, - .ref_internal = 2048, + .ref_internal = 4096, #ifdef CONFIG_ADC_ASYNC .read_async = tla2021_read_async, #endif