mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-12 23:42:23 +08:00
Ensured startup of USB link, updated port ids to read from
This commit is contained in:
+4
-6
@@ -18,7 +18,6 @@
|
||||
# can change this to prevent automatic startup of the flight script.
|
||||
#
|
||||
set MODE autostart
|
||||
set USB_ALLOWED yes
|
||||
set USB no
|
||||
|
||||
#
|
||||
@@ -47,12 +46,11 @@ fi
|
||||
#
|
||||
# Check for USB host
|
||||
#
|
||||
if [ $USB_ALLOWED == yes ]
|
||||
if sercon
|
||||
then
|
||||
if sercon
|
||||
then
|
||||
echo "[init] USB interface connected"
|
||||
fi
|
||||
echo "[init] USB interface connected"
|
||||
else
|
||||
echo "[init] No USB connected"
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user