Skip to content

Commit

Permalink
bmp388: Fixed compiler warning (error) for clang
Browse files Browse the repository at this point in the history
voxl2-slpi: Added more barometers to the build
  • Loading branch information
katzfey authored and bresch committed Mar 6, 2025
1 parent ea8bcd9 commit 139f379
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boards/modalai/voxl2-slpi/default.px4board
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ CONFIG_PLATFORM_QURT=y
CONFIG_BOARD_TOOLCHAIN="qurt"
CONFIG_DRIVERS_ACTUATORS_VOXL_ESC=y
CONFIG_DRIVERS_BAROMETER_INVENSENSE_ICP101XX=y
CONFIG_DRIVERS_BAROMETER_MS5611=y
CONFIG_DRIVERS_BAROMETER_BMP280=y
CONFIG_DRIVERS_BAROMETER_BMP388=y
CONFIG_DRIVERS_DISTANCE_SENSOR_VL53L0X=y
CONFIG_DRIVERS_DISTANCE_SENSOR_VL53L1X=y
CONFIG_DRIVERS_GPS=y
Expand Down
6 changes: 6 additions & 0 deletions src/drivers/barometer/bmp388/bmp388.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ BMP388::get_measurement_time()
case BMP3_OVERSAMPLING_8X:
meas_time_us = 22500;
break;

default:
break;
}

} else if (osr_t == BMP3_OVERSAMPLING_2X) {
Expand All @@ -336,6 +339,9 @@ BMP388::get_measurement_time()
case BMP3_OVERSAMPLING_32X:
meas_time_us = 68900;
break;

default:
break;
}
}

Expand Down

0 comments on commit 139f379

Please sign in to comment.