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

lsm303d: fix if style

parent a7126cc6
No related branches found
No related tags found
No related merge requests found
......@@ -1307,8 +1307,9 @@ LSM303D::accel_set_samplerate(unsigned frequency)
uint8_t setbits = 0;
uint8_t clearbits = REG1_RATE_BITS_A;
if (frequency == 0 || frequency == ACCEL_SAMPLERATE_DEFAULT)
if (frequency == 0 || frequency == ACCEL_SAMPLERATE_DEFAULT) {
frequency = 1600;
}
if (frequency <= 100) {
setbits |= REG1_RATE_100HZ_A;
......
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