mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
px4io: don't try the px4io serial interface on FMUv1
this caused px4io start to fail on FMUv1
This commit is contained in:
parent
f3764d0b5a
commit
c7d8535151
@ -1659,11 +1659,13 @@ get_interface()
|
||||
{
|
||||
device::Device *interface = nullptr;
|
||||
|
||||
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||
/* try for a serial interface */
|
||||
if (PX4IO_serial_interface != nullptr)
|
||||
interface = PX4IO_serial_interface();
|
||||
if (interface != nullptr)
|
||||
goto got;
|
||||
#endif
|
||||
|
||||
/* try for an I2C interface if we haven't got a serial one */
|
||||
if (PX4IO_i2c_interface != nullptr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user