From 1b2f63b23526e287af9d11e2ee79f106e23f627c Mon Sep 17 00:00:00 2001 From: Arnaud Taffanel Date: Mon, 24 Aug 2020 13:30:30 +0200 Subject: [PATCH] #613: Add static to file-local variables --- src/hal/src/sensors_bmi088_bmp388.c | 8 ++++---- src/hal/src/sensors_bmi088_spi_bmp388.c | 8 ++++---- src/hal/src/sensors_bosch.c | 8 ++++---- src/hal/src/sensors_mpu9250_lps25h.c | 8 ++++---- vendor/libdw1000 | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/hal/src/sensors_bmi088_bmp388.c b/src/hal/src/sensors_bmi088_bmp388.c index 6e1cd11e5b..de15fb93f5 100644 --- a/src/hal/src/sensors_bmi088_bmp388.c +++ b/src/hal/src/sensors_bmi088_bmp388.c @@ -143,10 +143,10 @@ static bool isBarometerPresent = false; static uint8_t baroMeasDelayMin = SENSORS_DELAY_BARO; // Pre-calculated values for accelerometer alignment -float cosPitch; -float sinPitch; -float cosRoll; -float sinRoll; +static float cosPitch; +static float sinPitch; +static float cosRoll; +static float sinRoll; #ifdef GYRO_GYRO_BIAS_LIGHT_WEIGHT static bool processGyroBiasNoBuffer(int16_t gx, int16_t gy, int16_t gz, Axis3f *gyroBiasOut); diff --git a/src/hal/src/sensors_bmi088_spi_bmp388.c b/src/hal/src/sensors_bmi088_spi_bmp388.c index 54377ff485..2ff1da6132 100644 --- a/src/hal/src/sensors_bmi088_spi_bmp388.c +++ b/src/hal/src/sensors_bmi088_spi_bmp388.c @@ -200,10 +200,10 @@ static bool isBarometerPresent = false; static uint8_t baroMeasDelayMin = SENSORS_DELAY_BARO; // Pre-calculated values for accelerometer alignment -float cosPitch; -float sinPitch; -float cosRoll; -float sinRoll; +static float cosPitch; +static float sinPitch; +static float cosRoll; +static float sinRoll; #ifdef GYRO_GYRO_BIAS_LIGHT_WEIGHT static bool processGyroBiasNoBuffer(int16_t gx, int16_t gy, int16_t gz, Axis3f *gyroBiasOut); diff --git a/src/hal/src/sensors_bosch.c b/src/hal/src/sensors_bosch.c index d64fb552f0..341a3a63a1 100644 --- a/src/hal/src/sensors_bosch.c +++ b/src/hal/src/sensors_bosch.c @@ -179,10 +179,10 @@ static bool isMagnetometerPresent = false; static uint8_t baroMeasDelayMin = SENSORS_DELAY_BARO; // Pre-calculated values for accelerometer alignment -float cosPitch; -float sinPitch; -float cosRoll; -float sinRoll; +static float cosPitch; +static float sinPitch; +static float cosRoll; +static float sinRoll; static void sensorsDeviceInit(void); static void sensorsTaskInit(void); diff --git a/src/hal/src/sensors_mpu9250_lps25h.c b/src/hal/src/sensors_mpu9250_lps25h.c index 66812250e2..2801aa5c79 100644 --- a/src/hal/src/sensors_mpu9250_lps25h.c +++ b/src/hal/src/sensors_mpu9250_lps25h.c @@ -148,10 +148,10 @@ static bool isAK8963TestPassed = false; static bool isLPS25HTestPassed = false; // Pre-calculated values for accelerometer alignment -float cosPitch; -float sinPitch; -float cosRoll; -float sinRoll; +static float cosPitch; +static float sinPitch; +static float cosRoll; +static float sinRoll; // This buffer needs to hold data from all sensors static uint8_t buffer[SENSORS_MPU6500_BUFF_LEN + SENSORS_MAG_BUFF_LEN + SENSORS_BARO_BUFF_LEN] = {0}; diff --git a/vendor/libdw1000 b/vendor/libdw1000 index 8d709dccc8..448a0efde4 160000 --- a/vendor/libdw1000 +++ b/vendor/libdw1000 @@ -1 +1 @@ -Subproject commit 8d709dccc83fd416fef6c450b97e868ce303dd69 +Subproject commit 448a0efde42a258139cc8ca61fe53ff3bb4a9b94