battery: pass priority in by setter

This commit is contained in:
Matthias Grob
2021-12-07 21:06:51 +01:00
parent f9fc9a9af6
commit 38d23f5345
12 changed files with 32 additions and 47 deletions
+3 -6
View File
@@ -72,8 +72,7 @@ INA238::INA238(const I2CSPIDriverConfig &config, int battery_index) :
hrt_absolute_time(),
0.0,
0.0,
false,
0
false
);
}
@@ -201,8 +200,7 @@ int INA238::collect()
hrt_absolute_time(),
(float) bus_voltage * INA238_VSCALE,
(float) current * _current_lsb,
success,
0
success
);
perf_end(_sample_perf);
@@ -261,8 +259,7 @@ void INA238::RunImpl()
hrt_absolute_time(),
0.0f,
0.0f,
false,
0
false
);
if (init() != PX4_OK) {