mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +08:00
[iis2mdc] Help device detection by retrying probing
This commit is contained in:
committed by
Niklas Hauser
parent
56d53b60c0
commit
3971db3cb4
@@ -50,6 +50,7 @@ protected:
|
|||||||
IIS2MDC_I2C::IIS2MDC_I2C(const I2CSPIDriverConfig &config) :
|
IIS2MDC_I2C::IIS2MDC_I2C(const I2CSPIDriverConfig &config) :
|
||||||
I2C(config)
|
I2C(config)
|
||||||
{
|
{
|
||||||
|
_retries = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
int IIS2MDC_I2C::probe()
|
int IIS2MDC_I2C::probe()
|
||||||
|
|||||||
Reference in New Issue
Block a user