Fixed NSH terminal init

This commit is contained in:
Lorenz Meier
2013-08-20 09:36:26 +02:00
parent 16559313db
commit 95260d4535
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -61,11 +61,7 @@ then
#
# Start terminal
#
if sercon
then
echo "USB connected"
nshterm /dev/ttyACM0 &
fi
sercon
#
# Start the ORB (first app to start)
@@ -164,5 +160,8 @@ then
sh /etc/init.d/31_io_phantom
fi
# Try to get an USB console
nshterm /dev/ttyACM0 &
# End of autostart
fi
+1 -1
View File
@@ -62,7 +62,7 @@ nshterm_main(int argc, char *argv[])
}
uint8_t retries = 0;
int fd = -1;
while (retries < 5) {
while (retries < 50) {
/* the retries are to cope with the behaviour of /dev/ttyACM0 */
/* which may not be ready immediately. */
fd = open(argv[1], O_RDWR);