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 authored and peterbarker committed Jul 10, 2024
1 parent a02cd4b commit 429294f
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 429294f

Please sign in to comment.