Skip to content

Commit

Permalink
AP_Baro: avoid i2c errors with ICP101XX
Browse files Browse the repository at this point in the history
this sensor doesn't like reading at higher than expected rate
  • Loading branch information
tridge committed Jul 6, 2024
1 parent f25a6a1 commit 6941571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Baro/AP_Baro_ICP101XX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -312,4 +312,4 @@ void AP_Baro_ICP101XX::update()
}
}

#endif // AP_BARO_ICP101XX_ENABLED
#endif // AP_BARO_ICP101XX_ENABLED

0 comments on commit 6941571

Please sign in to comment.