mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 14:33:35 +08:00
Remove probe override for si7210 driver
This commit removes the probe override for the si7210 driver, which seems to help with improving reliability of driver startup
This commit is contained in:
@@ -42,19 +42,6 @@
|
||||
|
||||
using namespace time_literals;
|
||||
|
||||
int
|
||||
SI7210::probe()
|
||||
{
|
||||
bool require_initialization = !init_si7210();
|
||||
|
||||
if (require_initialization && _keep_retrying) {
|
||||
PX4_INFO("no sensor found, but will keep retrying");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return require_initialization ? -1 : 0;
|
||||
}
|
||||
|
||||
/* Get registers value */
|
||||
int
|
||||
SI7210::get_regs(uint8_t ptr, uint8_t *regs)
|
||||
|
||||
@@ -140,7 +140,6 @@ private:
|
||||
|
||||
int measure() override { return 0; }
|
||||
int collect() override;
|
||||
int probe() override;
|
||||
int configure();
|
||||
|
||||
bool init_si7210();
|
||||
|
||||
Reference in New Issue
Block a user