File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
examples/Arduino/Example10_DMP_FastMultipleSensors Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ ICM_20948_Status_e ICM_20948::initializeDMP(void)
366
366
ICM_20948_smplrt_t mySmplrt;
367
367
mySmplrt.g = 4 ; // ODR is computed as follows: 1.1 kHz/(1+GYRO_SMPLRT_DIV[7:0]). 4 = 220Hz
368
368
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 ;
370
370
371
371
// Setup DMP start address through PRGM_STRT_ADDRH/PRGM_STRT_ADDRL
372
372
result = setDMPstartAddress (); if (result > worstResult) worstResult = result; // Defaults to DMP_START_ADDRESS
You can’t perform that action at this time.
0 commit comments