Skip to content
Snippets Groups Projects
Commit a7126cc6 authored by Thomas Gubler's avatar Thomas Gubler
Browse files

l3gd20: fix if style

parent 2252a969
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment