aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/px4io/px4io.cpp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-07-31 17:53:11 +1000
committerLorenz Meier <lm@inf.ethz.ch>2013-08-02 12:45:41 +0200
commitc7d8535151c336dfbc0bdf522efb358d0c250bd5 (patch)
tree4f1dcee4302ef925b365683a1eacfb872d228a3a /src/drivers/px4io/px4io.cpp
parentf3764d0b5a219aea24d05274311d91ad08eb182d (diff)
downloadpx4-firmware-c7d8535151c336dfbc0bdf522efb358d0c250bd5.tar.gz
px4-firmware-c7d8535151c336dfbc0bdf522efb358d0c250bd5.tar.bz2
px4-firmware-c7d8535151c336dfbc0bdf522efb358d0c250bd5.zip
px4io: don't try the px4io serial interface on FMUv1
this caused px4io start to fail on FMUv1
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r--src/drivers/px4io/px4io.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index dd876f903..281debe5c 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -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)