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
@@ -89,8 +89,7 @@ INA228::INA228(const I2CSPIDriverConfig &config, int battery_index) :
hrt_absolute_time(),
0.0,
0.0,
false,
0
false
);
}
@@ -314,8 +313,7 @@ INA228::collect()
hrt_absolute_time(),
(float) _bus_voltage * INA228_VSCALE,
(float) _current * _current_lsb,
success,
0
success
);
perf_end(_sample_perf);
@@ -383,8 +381,7 @@ INA228::RunImpl()
hrt_absolute_time(),
0.0f,
0.0f,
false,
0
false
);
if (init() != PX4_OK) {