Skip to content

Commit 7fcad68

Browse files
committed
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
1 parent 66ad2fd commit 7fcad68

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/drivers/si7210/si7210.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,6 @@
4242

4343
using namespace time_literals;
4444

45-
int
46-
SI7210::probe()
47-
{
48-
bool require_initialization = !init_si7210();
49-
50-
if (require_initialization && _keep_retrying) {
51-
PX4_INFO("no sensor found, but will keep retrying");
52-
return 0;
53-
}
54-
55-
return require_initialization ? -1 : 0;
56-
}
57-
5845
/* Get registers value */
5946
int
6047
SI7210::get_regs(uint8_t ptr, uint8_t *regs)

src/drivers/si7210/si7210.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ class SI7210 : public Vane, public I2CSPIDriver<SI7210>
140140

141141
int measure() override { return 0; }
142142
int collect() override;
143-
int probe() override;
144143
int configure();
145144

146145
bool init_si7210();

0 commit comments

Comments
 (0)