From d38164fc8e68b740405669127138e550c3c7375c Mon Sep 17 00:00:00 2001 From: Jaeyoung-Lim Date: Sun, 21 Jul 2019 17:37:08 +0200 Subject: [PATCH] Fix flag for initialization --- geo/geo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo/geo.cpp b/geo/geo.cpp index 4888b8bbc3..28bb3dcda8 100644 --- a/geo/geo.cpp +++ b/geo/geo.cpp @@ -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; }