From 0b0c63a73dcf4b56d94814a7bad88d42dea9c2e2 Mon Sep 17 00:00:00 2001 From: tbolin Date: Wed, 6 Dec 2023 21:38:21 +0100 Subject: [PATCH] Add ICM-42605 to list of gyros with overflow protection (#13194) --- src/main/sensors/gyro_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/gyro_init.c b/src/main/sensors/gyro_init.c index 80495e52ed..8b2edba805 100644 --- a/src/main/sensors/gyro_init.c +++ b/src/main/sensors/gyro_init.c @@ -330,6 +330,7 @@ void gyroInitSensor(gyroSensor_t *gyroSensor, const gyroDeviceConfig_t *config) case GYRO_LSM6DSO: case GYRO_LSM6DSV16X: case GYRO_ICM42688P: + case GYRO_ICM42605: gyroSensor->gyroDev.gyroHasOverflowProtection = true; break; @@ -337,7 +338,6 @@ void gyroInitSensor(gyroSensor_t *gyroSensor, const gyroDeviceConfig_t *config) 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;