Hotfixes for HIL and mode switching.

This commit is contained in:
Lorenz Meier
2013-09-22 17:08:29 +02:00
parent 6209ce5bfb
commit ad4c28507f
4 changed files with 40 additions and 12 deletions
+1 -1
View File
@@ -531,7 +531,7 @@ int mavlink_thread_main(int argc, char *argv[])
case 'b':
baudrate = strtoul(optarg, NULL, 10);
if (baudrate == 0)
if (baudrate < 9600 || baudrate > 921600)
errx(1, "invalid baud rate '%s'", optarg);
break;