mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 09:13:32 +08:00
l3gd20: fix if style
This commit is contained in:
@@ -784,8 +784,9 @@ L3GD20::set_samplerate(unsigned frequency)
|
||||
{
|
||||
uint8_t bits = REG1_POWER_NORMAL | REG1_Z_ENABLE | REG1_Y_ENABLE | REG1_X_ENABLE;
|
||||
|
||||
if (frequency == 0 || frequency == GYRO_SAMPLERATE_DEFAULT)
|
||||
if (frequency == 0 || frequency == GYRO_SAMPLERATE_DEFAULT) {
|
||||
frequency = _is_l3g4200d ? 800 : 760;
|
||||
}
|
||||
|
||||
/*
|
||||
* Use limits good for H or non-H models. Rates are slightly different
|
||||
|
||||
Reference in New Issue
Block a user