ROMFS: use different UART for errors in aerofc

This commit is contained in:
Lucas De Marchi 2017-02-22 15:23:58 -08:00 committed by Andrew Tridgell
parent 3eb16fd881
commit 81a9a70910
4 changed files with 18 additions and 4 deletions

View File

@ -518,3 +518,4 @@ class aerofc_v1(px4):
self.bootloader_name = 'aerofcv1_bl.bin'
self.board_name = 'aerofc-v1'
self.romfs_exclude(['oreoled.bin'])
self.board_rc = True

View File

@ -0,0 +1,4 @@
# AEROFC-V1 custom definitions
set NSH_ERROR_UART1 /dev/ttyS5
set NSH_ERROR_UART2 none

View File

@ -7,8 +7,15 @@ then
rgbled rgb 16 0 0
fi
nshterm /dev/ttyACM0 &
sleep 1
nshterm /dev/ttyS0 &
sleep 1
if [ $NSH_ERROR_UART1 != none ]
then
nshterm $NSH_ERROR_UART1 &
sleep 1
fi
if [ $NSH_ERROR_UART2 != none ]
then
nshterm $NSH_ERROR_UART2 &
sleep 1
fi
exit

View File

@ -14,6 +14,8 @@
#
set USB autoconnect
set NSH_ERROR_UART1 /dev/ttyACM0
set NSH_ERROR_UART2 /dev/ttyS0
#
# Try to mount the microSD card.