mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mpu6000: fix if style
This commit is contained in:
parent
8ac05dc8b0
commit
3e7faa6018
@ -798,8 +798,7 @@ MPU6000::_set_sample_rate(unsigned desired_sample_rate_hz)
|
||||
{
|
||||
if (desired_sample_rate_hz == 0 ||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user