From 5cdcaf7b7cabb2d330fc7225053d269ef8a32a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Fri, 6 Jun 2025 23:55:11 +0200 Subject: [PATCH] drivers: sensor: veaa_x_3: fix broken config initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed typos in the preprocessor macros for pressure range initialization Unfortunately this particular configuration is not covered in CI since build_all test has pressue-range "D2" and the broken code was concerning "D9" Signed-off-by: Benjamin Cabé --- drivers/sensor/veaa_x_3/veaa_x_3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sensor/veaa_x_3/veaa_x_3.c b/drivers/sensor/veaa_x_3/veaa_x_3.c index bfad1027ab3..453f6751ce2 100644 --- a/drivers/sensor/veaa_x_3/veaa_x_3.c +++ b/drivers/sensor/veaa_x_3/veaa_x_3.c @@ -191,13 +191,13 @@ static int veaa_x_3_init(const struct device *dev) #define VEAA_X_3_RANGE_KPA_INIT(n) \ COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d11), ({.max = 1000, min = 5}), \ (COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d9), \ - ({.max = 600, min = 3}), ({.max = 200, .min = 1})))) + ({.max = 600, .min = 3}), ({.max = 200, .min = 1})))) #define VEAA_X_3_TYPE_INIT(n) \ COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d11), \ (.kpa_max = 1000, .kpa_min = 5), \ (COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d9), \ - (.kpa_max = 600, kpa_min = 3), (.kpa_max = 200, .kpa_min = 1)))) + (.kpa_max = 600, .kpa_min = 3), (.kpa_max = 200, .kpa_min = 1)))) #define VEAA_X_3_INIT(n) \ \