Skip to content

Commit

Permalink
Fix #12908 Add ICM-42688-P IMU to list of IMUs with overflow protecti…
Browse files Browse the repository at this point in the history
…on (#13013)

Add ICM-42688-P imu to list of imus with overflow protection
  • Loading branch information
tbolin committed Dec 5, 2023
1 parent 4c86e31 commit efe1825
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/sensors/gyro_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,15 @@ void gyroInitSensor(gyroSensor_t *gyroSensor, const gyroDeviceConfig_t *config)
case GYRO_MPU9250:
case GYRO_LSM6DSO:
case GYRO_LSM6DSV16X:
case GYRO_ICM42688P:
gyroSensor->gyroDev.gyroHasOverflowProtection = true;
break;

case GYRO_ICM20601:
case GYRO_ICM20602:
case GYRO_ICM20608G:
case GYRO_ICM20649: // we don't actually know if this is affected, but as there are currently no flight controllers using it we err on the side of caution
case GYRO_ICM42605: // we don't actually know if this is affected
case GYRO_ICM20689:
gyroSensor->gyroDev.gyroHasOverflowProtection = false;
break;
Expand Down

0 comments on commit efe1825

Please sign in to comment.