mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_ChibiOS: atof to strtof
This commit is contained in:
parent
34f5b800b6
commit
bf695e4eeb
@ -531,7 +531,7 @@ void Util::apply_persistent_params(void) const
|
|||||||
if (eq) {
|
if (eq) {
|
||||||
*eq = 0;
|
*eq = 0;
|
||||||
const char *pname = p;
|
const char *pname = p;
|
||||||
const float value = atof(eq+1);
|
const float value = strtof(eq+1, NULL);
|
||||||
if (AP_Param::set_default_by_name(pname, value)) {
|
if (AP_Param::set_default_by_name(pname, value)) {
|
||||||
count++;
|
count++;
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user