Skip to content

Commit 3d97b76

Browse files
kartbendkalowsk
authored andcommitted
drivers: input: esp32: fix reference voltage assignment
Fixed a copy-paste error where `refl` configuration value was not properly assigned. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent c83fbae commit 3d97b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/input_esp32_touch_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int esp32_touch_sensor_init(const struct device *dev)
186186
#if defined(CONFIG_SOC_SERIES_ESP32)
187187
touch_hal_volt_t volt = {
188188
.refh = dev_cfg->href_microvolt_enum_idx,
189-
.refh = dev_cfg->href_microvolt_enum_idx,
189+
.refl = dev_cfg->lref_microvolt_enum_idx,
190190
.atten = dev_cfg->href_atten_microvolt_enum_idx
191191
};
192192

0 commit comments

Comments
 (0)