We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ef0dae commit e5dcee9Copy full SHA for e5dcee9
src/imu/ImuGizmoBMI270.h
@@ -203,8 +203,6 @@ class ImuGizmoBMI270 : public ImuGizmo {
203
_spi = spi;
204
_csPin = csPin;
205
206
- if(who_am_i() != 0x24) return false;
207
-
208
set_gyro_scale_dps(gyro_scale_dps);
209
set_acc_scale_g(acc_scale_g);
210
set_rate(rate_hz);
@@ -220,6 +218,8 @@ class ImuGizmoBMI270 : public ImuGizmo {
220
218
digitalWrite(_csPin, HIGH);
221
219
delay(10);
222
+ if(who_am_i() != 0x24) return false;
+
223
// Perform a soft reset to set all configuration to default
224
// Delay 100ms before continuing configuration
225
write_reg(BMI270_REG_CMD, BMI270_VAL_CMD_SOFTRESET);
0 commit comments