mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-28 19:21:03 +08:00
fix atxxxx osd driver: use correct device id
This commit is contained in:
1 parent
5fe4c61b42
commit
d8da9db04c
1 file changed
+1
-1
@@ -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