mirror of https://github.com/ArduPilot/ardupilot
Adding missing loop counter for menu.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@809 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
687f5ebc00
commit
33a7d26846
|
@ -89,10 +89,12 @@ Menu::run(void)
|
||||||
// populate arguments that have not been specified with "" and 0
|
// populate arguments that have not been specified with "" and 0
|
||||||
// this is safer than NULL in the case where commands may look
|
// this is safer than NULL in the case where commands may look
|
||||||
// without testing argc
|
// without testing argc
|
||||||
while (argc <= MENU_ARGS_MAX) {
|
i = argc;
|
||||||
_argv[argc].str = "";
|
while (i <= MENU_ARGS_MAX) {
|
||||||
_argv[argc].i = 0;
|
_argv[i].str = "";
|
||||||
_argv[argc].f = 0;
|
_argv[i].i = 0;
|
||||||
|
_argv[i].f = 0;
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// look for a command matching the first word (note that it may be empty)
|
// look for a command matching the first word (note that it may be empty)
|
||||||
|
|
Loading…
Reference in New Issue