mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:43:34 +08:00
mpu6000: fix if style
This commit is contained in:
@@ -798,8 +798,7 @@ MPU6000::_set_sample_rate(unsigned desired_sample_rate_hz)
|
|||||||
{
|
{
|
||||||
if (desired_sample_rate_hz == 0 ||
|
if (desired_sample_rate_hz == 0 ||
|
||||||
desired_sample_rate_hz == GYRO_SAMPLERATE_DEFAULT ||
|
desired_sample_rate_hz == GYRO_SAMPLERATE_DEFAULT ||
|
||||||
desired_sample_rate_hz == ACCEL_SAMPLERATE_DEFAULT)
|
desired_sample_rate_hz == ACCEL_SAMPLERATE_DEFAULT) {
|
||||||
{
|
|
||||||
desired_sample_rate_hz = MPU6000_GYRO_DEFAULT_RATE;
|
desired_sample_rate_hz = MPU6000_GYRO_DEFAULT_RATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user