mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
batt_smbus: Pass device address to base class
Fixes a warning printed at runtime Signed-off-by: Alex Mikhalev <alex@corvus-robotics.com>
This commit is contained in:
parent
4678201da4
commit
93b1a148b7
@ -48,7 +48,8 @@
|
||||
extern "C" __EXPORT int batt_smbus_main(int argc, char *argv[]);
|
||||
|
||||
BATT_SMBUS::BATT_SMBUS(I2CSPIBusOption bus_option, const int bus, SMBus *interface) :
|
||||
I2CSPIDriver(MODULE_NAME, px4::device_bus_to_wq(interface->get_device_id()), bus_option, bus),
|
||||
I2CSPIDriver(MODULE_NAME, px4::device_bus_to_wq(interface->get_device_id()), bus_option, bus,
|
||||
interface->get_device_address()),
|
||||
_interface(interface)
|
||||
{
|
||||
battery_status_s new_report = {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user