Fix preprocessor directive mishap causing compilation failure when BMX280_EXPECT_BMP280 set.

This commit is contained in:
H. Utku Maden 2022-05-04 10:24:40 +03:00
parent 2bc4373f8d
commit e1a05657e2

@ -155,6 +155,7 @@ typedef struct bmx280_config_t {
#else #else
#define BMX280_DEFAULT_HUMIDITY_OVERSAMPLING BMX280_HUMIDITY_OVERSAMPLING_X16 #define BMX280_DEFAULT_HUMIDITY_OVERSAMPLING BMX280_HUMIDITY_OVERSAMPLING_X16
#endif #endif
#endif
#if !(CONFIG_BMX280_EXPECT_BMP280) #if !(CONFIG_BMX280_EXPECT_BMP280)
#define BMX280_DEFAULT_CONFIG ((bmx280_config_t) { BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING, BMX280_DEFAULT_PRESSURE_OVERSAMPLING, BMX280_DEFAULT_STANDBY, BMX280_DEFAULT_IIR, BMX280_DEFAULT_HUMIDITY_OVERSAMPLING }) #define BMX280_DEFAULT_CONFIG ((bmx280_config_t) { BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING, BMX280_DEFAULT_PRESSURE_OVERSAMPLING, BMX280_DEFAULT_STANDBY, BMX280_DEFAULT_IIR, BMX280_DEFAULT_HUMIDITY_OVERSAMPLING })
@ -163,5 +164,3 @@ typedef struct bmx280_config_t {
#endif #endif
#endif #endif
#endif