Skip to content

Commit 5cdcaf7

Browse files
kartbendkalowsk
authored andcommitted
drivers: sensor: veaa_x_3: fix broken config initialization
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é <[email protected]>
1 parent 00bd154 commit 5cdcaf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sensor/veaa_x_3/veaa_x_3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ static int veaa_x_3_init(const struct device *dev)
191191
#define VEAA_X_3_RANGE_KPA_INIT(n) \
192192
COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d11), ({.max = 1000, min = 5}), \
193193
(COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d9), \
194-
({.max = 600, min = 3}), ({.max = 200, .min = 1}))))
194+
({.max = 600, .min = 3}), ({.max = 200, .min = 1}))))
195195

196196
#define VEAA_X_3_TYPE_INIT(n) \
197197
COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d11), \
198198
(.kpa_max = 1000, .kpa_min = 5), \
199199
(COND_CODE_1(DT_INST_ENUM_HAS_VALUE(n, pressure_range_type, d9), \
200-
(.kpa_max = 600, kpa_min = 3), (.kpa_max = 200, .kpa_min = 1))))
200+
(.kpa_max = 600, .kpa_min = 3), (.kpa_max = 200, .kpa_min = 1))))
201201

202202
#define VEAA_X_3_INIT(n) \
203203
\

0 commit comments

Comments
 (0)