forked from Archive/PX4-Autopilot
Fix flag for initialization
This commit is contained in:
parent
e1751188fd
commit
d38164fc8e
|
@ -212,7 +212,7 @@ int globallocalconverter_init(double lat_0, double lon_0, float alt_0, uint64_t
|
|||
{
|
||||
gl_ref.alt = alt_0;
|
||||
|
||||
if (map_projection_global_init(lat_0, lon_0, timestamp) != 0) {
|
||||
if (!map_projection_global_init(lat_0, lon_0, timestamp)) {
|
||||
gl_ref.init_done = true;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue