1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Add ICM-42605 to list of gyros with overflow protection (#13194)

This commit is contained in:
tbolin 2023-12-06 21:38:21 +01:00 committed by GitHub
parent 71199b1602
commit 0b0c63a73d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,6 +330,7 @@ void gyroInitSensor(gyroSensor_t *gyroSensor, const gyroDeviceConfig_t *config)
case GYRO_LSM6DSO: case GYRO_LSM6DSO:
case GYRO_LSM6DSV16X: case GYRO_LSM6DSV16X:
case GYRO_ICM42688P: case GYRO_ICM42688P:
case GYRO_ICM42605:
gyroSensor->gyroDev.gyroHasOverflowProtection = true; gyroSensor->gyroDev.gyroHasOverflowProtection = true;
break; break;
@ -337,7 +338,6 @@ void gyroInitSensor(gyroSensor_t *gyroSensor, const gyroDeviceConfig_t *config)
case GYRO_ICM20602: case GYRO_ICM20602:
case GYRO_ICM20608G: 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_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: case GYRO_ICM20689:
gyroSensor->gyroDev.gyroHasOverflowProtection = false; gyroSensor->gyroDev.gyroHasOverflowProtection = false;
break; break;