mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 00:28:54 +08:00
I2C/SPI require device type in constructor
This commit is contained in:
@@ -218,7 +218,7 @@ MK *g_mk;
|
||||
} // namespace
|
||||
|
||||
MK::MK(int bus, const char *_device_path) :
|
||||
I2C("mkblctrl", "/dev/mkblctrl0", bus, 0, I2C_BUS_SPEED),
|
||||
I2C(0, "mkblctrl", bus, 0, I2C_BUS_SPEED),
|
||||
_update_rate(UPDATE_RATE),
|
||||
_task(-1),
|
||||
_t_actuators(-1),
|
||||
|
||||
Reference in New Issue
Block a user