diff --git a/src/kernel/gps/INS.hx b/src/kernel/gps/INS.hx index 6b9e1df..7f30b17 100644 --- a/src/kernel/gps/INS.hx +++ b/src/kernel/gps/INS.hx @@ -69,8 +69,9 @@ class INS { } private static function move(dir:Null) { - Log.debug('INS move: $dir'); var pos = GPS.getPosition(); + if (pos == null || dir == null) + return; var newPos = pos + dir; GPS.setINSPosition(newPos); }