mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 12:17:35 +08:00
fix atxxxx osd driver: use correct device id
This commit is contained in:
@@ -50,7 +50,7 @@ struct work_s OSDatxxxx::_work = {};
|
||||
|
||||
|
||||
OSDatxxxx::OSDatxxxx(int bus) :
|
||||
SPI("OSD", OSD_DEVICE_PATH, bus, OSD_SPIDEV, SPIDEV_MODE0, OSD_SPI_BUS_SPEED),
|
||||
SPI("OSD", OSD_DEVICE_PATH, bus, PX4_MK_SPI_SEL(bus, OSD_SPIDEV), SPIDEV_MODE0, OSD_SPI_BUS_SPEED),
|
||||
ModuleParams(nullptr)
|
||||
{
|
||||
_battery_sub = orb_subscribe(ORB_ID(battery_status));
|
||||
|
||||
Reference in New Issue
Block a user