mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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) {
|
||||
ret = write(INA226_REG_CONFIGURATION, _config);
|
||||
|
||||
} else {
|
||||
ret = OK;
|
||||
}
|
||||
|
||||
set_device_address(INA226_BASEADDR); /* set I2c Address */
|
||||
|
||||
Reference in New Issue
Block a user