mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Allow to disable USB interface (but leave it enabled as default), give uORB more stack space
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
# can change this to prevent automatic startup of the flight script.
|
||||
#
|
||||
set MODE autostart
|
||||
set USB no
|
||||
set USB autoconnect
|
||||
|
||||
#
|
||||
# Try to mount the microSD card.
|
||||
@@ -46,11 +46,16 @@ fi
|
||||
#
|
||||
# Check for USB host
|
||||
#
|
||||
if sercon
|
||||
if [ $USB != autoconnect ]
|
||||
then
|
||||
echo "[init] USB interface connected"
|
||||
echo "[init] not connecting USB"
|
||||
else
|
||||
echo "[init] No USB connected"
|
||||
if sercon
|
||||
then
|
||||
echo "[init] USB interface connected"
|
||||
else
|
||||
echo "[init] No USB connected"
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
@@ -37,6 +37,6 @@
|
||||
|
||||
APPNAME = uorb
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
STACKSIZE = 2048
|
||||
STACKSIZE = 4096
|
||||
|
||||
include $(APPDIR)/mk/app.mk
|
||||
|
||||
Reference in New Issue
Block a user