From 581890739090668b456015da5dea0682cfe4bc02 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 6 Jul 2024 11:38:58 +1000 Subject: [PATCH] AP_Baro: avoid i2c errors with ICP101XX this sensor doesn't like reading at higher than expected rate --- libraries/AP_Baro/AP_Baro_ICP101XX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro_ICP101XX.cpp b/libraries/AP_Baro/AP_Baro_ICP101XX.cpp index f06df354d0..592bf73095 100644 --- a/libraries/AP_Baro/AP_Baro_ICP101XX.cpp +++ b/libraries/AP_Baro/AP_Baro_ICP101XX.cpp @@ -109,7 +109,7 @@ bool AP_Baro_ICP101XX::init() dev->get_semaphore()->give(); - dev->register_periodic_callback(measure_interval/2, FUNCTOR_BIND_MEMBER(&AP_Baro_ICP101XX::timer, void)); + dev->register_periodic_callback(measure_interval, FUNCTOR_BIND_MEMBER(&AP_Baro_ICP101XX::timer, void)); return true; @@ -312,4 +312,4 @@ void AP_Baro_ICP101XX::update() } } -#endif // AP_BARO_ICP101XX_ENABLED \ No newline at end of file +#endif // AP_BARO_ICP101XX_ENABLED