mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
LPS22HB: Fix invalid driver reset (I2C bus)
This commit is contained in:
committed by
Daniel Agar
parent
3a7deefe6e
commit
ce0dd41a11
@@ -186,7 +186,7 @@ LPS22HB::reset()
|
|||||||
{
|
{
|
||||||
int ret = PX4_ERROR;
|
int ret = PX4_ERROR;
|
||||||
|
|
||||||
ret = write_reg(CTRL_REG2, BOOT | I2C_DIS | SWRESET);
|
ret = write_reg(CTRL_REG2, BOOT | SWRESET);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user