mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 01:45:55 +08:00
ina238: actually run it
Without this the driver would not run when started from the i2c_launcher.
This commit is contained in:
@@ -137,7 +137,15 @@ int INA238::init()
|
||||
return ret;
|
||||
}
|
||||
|
||||
return Reset();
|
||||
ret = Reset();
|
||||
|
||||
if (ret) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
start();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int INA238::force_init()
|
||||
|
||||
Reference in New Issue
Block a user