mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 04:01:36 +08:00
INA226::init Restored return OK in trigger mode
Restore return state that was lost in e4926373e6
This commit is contained in:
committed by
David Sidrane
parent
487addbba5
commit
eaaf66e46b
@@ -314,6 +314,9 @@ INA226::init()
|
|||||||
|
|
||||||
if (!_mode_trigged) {
|
if (!_mode_trigged) {
|
||||||
ret = write(INA226_REG_CONFIGURATION, _config);
|
ret = write(INA226_REG_CONFIGURATION, _config);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
ret = OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_device_address(INA226_BASEADDR); /* set I2c Address */
|
set_device_address(INA226_BASEADDR); /* set I2c Address */
|
||||||
|
|||||||
Reference in New Issue
Block a user