From c9a17fdd68209df499a91d857030e496677925f5 Mon Sep 17 00:00:00 2001 From: Dennis Shtatnov Date: Sun, 11 Sep 2016 21:41:51 -0400 Subject: [PATCH] CF2: Free up serials There are only two exposed serial connections, which are used as other things for the decks, so don't utilize any by default --- ROMFS/px4fmu_common/init.d/rcS | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 012459ba67..24c41af9bc 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -505,9 +505,19 @@ then mavlink start -r 20000 -m config -b 921600 -d /dev/ttyS0 fi fi + + if ver hwcmp CRAZYFLIE + then + # Avoid using either of the two available serials + set MAVLINK_F none + fi fi - mavlink start $MAVLINK_F + if [ $MAVLINK_F == "none" ] + then + else + mavlink start $MAVLINK_F + fi unset MAVLINK_F #