AP_Menu: use strtof() instead of atof()

This commit is contained in:
Andrew Tridgell 2019-10-28 07:37:36 +11:00
parent 34f5b40919
commit 513fd4065b
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ Menu::_run_command(bool prompt_on_enter)
if (_argv[argc].str == nullptr || '\0' == _argv[argc].str[0]) if (_argv[argc].str == nullptr || '\0' == _argv[argc].str[0])
break; break;
_argv[argc].i = atol(_argv[argc].str); _argv[argc].i = atol(_argv[argc].str);
_argv[argc].f = atof(_argv[argc].str); // calls strtod, > 700B ! _argv[argc].f = strtof(_argv[argc].str, NULL);
argc++; argc++;
} }