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;
|
||||
if (!_ahrs_ekf.get_origin(ret)) {
|
||||
// initialise location to all zeros if EKF origin not yet set
|
||||
memset(&ret, 0, sizeof(ret));
|
||||
ret.zero();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue