mirror of https://github.com/ArduPilot/ardupilot
AP_InertialNav: fix gcc8 warning
This commit is contained in:
parent
f6941beeb9
commit
1af6178be8
|
@ -56,7 +56,7 @@ struct Location AP_InertialNav_NavEKF::get_origin() const
|
||||||
struct Location ret;
|
struct Location ret;
|
||||||
if (!_ahrs_ekf.get_origin(ret)) {
|
if (!_ahrs_ekf.get_origin(ret)) {
|
||||||
// initialise location to all zeros if EKF origin not yet set
|
// initialise location to all zeros if EKF origin not yet set
|
||||||
memset(&ret, 0, sizeof(ret));
|
ret.zero();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue