mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 04:01:36 +08:00
I2C/SPI require device type in constructor
This commit is contained in:
@@ -100,7 +100,7 @@ private:
|
||||
};
|
||||
|
||||
RGBLED::RGBLED(I2CSPIBusOption bus_option, const int bus, int bus_frequency, const int address) :
|
||||
I2C("rgbled", nullptr, bus, address, bus_frequency),
|
||||
I2C(DRV_LED_DEVTYPE_RGBLED, MODULE_NAME, bus, address, bus_frequency),
|
||||
I2CSPIDriver(MODULE_NAME, px4::device_bus_to_wq(get_device_id()), bus_option, bus)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user