mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 13:15:08 +08:00
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
This commit is contained in:
committed by
Lorenz Meier
parent
eafc0dad4a
commit
c9a17fdd68
@@ -505,9 +505,19 @@ then
|
|||||||
mavlink start -r 20000 -m config -b 921600 -d /dev/ttyS0
|
mavlink start -r 20000 -m config -b 921600 -d /dev/ttyS0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ver hwcmp CRAZYFLIE
|
||||||
|
then
|
||||||
|
# Avoid using either of the two available serials
|
||||||
|
set MAVLINK_F none
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $MAVLINK_F == "none" ]
|
||||||
|
then
|
||||||
|
else
|
||||||
mavlink start $MAVLINK_F
|
mavlink start $MAVLINK_F
|
||||||
|
fi
|
||||||
unset MAVLINK_F
|
unset MAVLINK_F
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user