From 2e8918da66af37922ededee1cc2d2efffec4cfb2 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 6 Sep 2021 11:52:58 -0400 Subject: [PATCH] boards: cubepilot_cubeorange only start ADSB mavlink if console not present - cubepilot_cubeorange_test has the console enabled (used for test rack and bench debugging) --- boards/cubepilot/cubeorange/init/rc.board_mavlink | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boards/cubepilot/cubeorange/init/rc.board_mavlink b/boards/cubepilot/cubeorange/init/rc.board_mavlink index 9ac9569a62..6b0f1badde 100644 --- a/boards/cubepilot/cubeorange/init/rc.board_mavlink +++ b/boards/cubepilot/cubeorange/init/rc.board_mavlink @@ -6,5 +6,8 @@ # Start MAVLink on the USB port mavlink start -d /dev/ttyACM0 -# Start ADS-B receiver mavlink connection -mavlink start -d /dev/ttyS4 +# Start ADS-B receiver mavlink connection if console not present +if [ ! -e /dev/console ] +then + mavlink start -d /dev/ttyS4 -b 57600 -m minimal +fi