Skip to content

Commit ffca57b

Browse files
authored
Merge pull request #58 from sparkfun/release_candidate
Update Example10_DMP_FastMultipleSensors.ino
2 parents 8341270 + 3ce1144 commit ffca57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Arduino/Example10_DMP_FastMultipleSensors/Example10_DMP_FastMultipleSensors.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ ICM_20948_Status_e ICM_20948::initializeDMP(void)
366366
ICM_20948_smplrt_t mySmplrt;
367367
mySmplrt.g = 4; // ODR is computed as follows: 1.1 kHz/(1+GYRO_SMPLRT_DIV[7:0]). 4 = 220Hz
368368
mySmplrt.a = 4; // ODR is computed as follows: 1.125 kHz/(1+ACCEL_SMPLRT_DIV[11:0]). 4 = 225Hz
369-
myICM.setSampleRate((ICM_20948_Internal_Acc | ICM_20948_Internal_Gyr), mySmplrt);
369+
result = setSampleRate((ICM_20948_Internal_Acc | ICM_20948_Internal_Gyr), mySmplrt); if (result > worstResult) worstResult = result;
370370

371371
// Setup DMP start address through PRGM_STRT_ADDRH/PRGM_STRT_ADDRL
372372
result = setDMPstartAddress(); if (result > worstResult) worstResult = result; // Defaults to DMP_START_ADDRESS

0 commit comments

Comments
 (0)