bmp388: fix variable shadowing warning

This commit is contained in:
Beat Küng 2020-05-29 07:34:06 +02:00 committed by Daniel Agar
parent 9b2527549b
commit 43279f18ba
2 changed files with 3 additions and 3 deletions

View File

@ -264,7 +264,7 @@ BMP388::validate_trimming_param()
}
uint32_t
BMP388::get_measurement_time(uint8_t osr_t, uint8_t osr_p)
BMP388::get_measurement_time()
{
/*
From BST-BMP388-DS001.pdf, page 25, table 21
@ -325,7 +325,7 @@ BMP388::get_measurement_time(uint8_t osr_t, uint8_t osr_p)
bool
BMP388::set_sensor_settings()
{
_measure_interval = get_measurement_time(osr_t, osr_p);
_measure_interval = get_measurement_time();
if (_measure_interval == 0) {
PX4_WARN("unsupported oversampling selected");

View File

@ -343,7 +343,7 @@ private:
void start();
int measure();
int collect(); //get results and publish
uint32_t get_measurement_time(uint8_t osr_t, uint8_t osr_p);
uint32_t get_measurement_time();
bool soft_reset();
bool get_calib_data();