Fix flag for initialization

This commit is contained in:
Jaeyoung-Lim 2019-07-21 17:37:08 +02:00 committed by Beat Küng
parent e1751188fd
commit d38164fc8e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}