From 3d97b76438ba76a55c61cce01e21eaa2921fbc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Mon, 9 Jun 2025 16:38:02 +0200 Subject: [PATCH] drivers: input: esp32: fix reference voltage assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed a copy-paste error where `refl` configuration value was not properly assigned. Signed-off-by: Benjamin Cabé --- drivers/input/input_esp32_touch_sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input_esp32_touch_sensor.c b/drivers/input/input_esp32_touch_sensor.c index c8595508107..08fed50cc5a 100644 --- a/drivers/input/input_esp32_touch_sensor.c +++ b/drivers/input/input_esp32_touch_sensor.c @@ -186,7 +186,7 @@ static int esp32_touch_sensor_init(const struct device *dev) #if defined(CONFIG_SOC_SERIES_ESP32) touch_hal_volt_t volt = { .refh = dev_cfg->href_microvolt_enum_idx, - .refh = dev_cfg->href_microvolt_enum_idx, + .refl = dev_cfg->lref_microvolt_enum_idx, .atten = dev_cfg->href_atten_microvolt_enum_idx };