mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +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 ||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user