mpu6000: fix if style

This commit is contained in:
Thomas Gubler 2015-02-03 18:21:04 +01:00
parent 8ac05dc8b0
commit 3e7faa6018

View File

@ -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;
}