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

l3gd20: check for default sample rate

parent e2524b9a
No related branches found
No related tags found
No related merge requests found
......@@ -784,7 +784,7 @@ L3GD20::set_samplerate(unsigned frequency)
{
uint8_t bits = REG1_POWER_NORMAL | REG1_Z_ENABLE | REG1_Y_ENABLE | REG1_X_ENABLE;
if (frequency == 0)
if (frequency == 0 || frequency == GYRO_SAMPLERATE_DEFAULT)
frequency = _is_l3g4200d ? 800 : 760;
/*
......
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