positioning updates

Dependents:   example-gnss

Fork of gnss by u-blox

Revision:
29:de9fcdbc4d06
Parent:
28:54fd002f2376
--- a/gnss.cpp	Mon Dec 17 12:11:07 2018 +0500
+++ b/gnss.cpp	Wed Apr 03 11:53:35 2019 +0500
@@ -446,7 +446,8 @@
 
 	// Go to Fix type
 	index = UBX_PAYLOAD_INDEX + 20;
-	return_decoded_msg.fixType = buf[index];
+    return_decoded_msg.fixType = buf[index++];
+    return_decoded_msg.flag1 = buf[index];
 
 	// Go to lon
 	index = UBX_PAYLOAD_INDEX + 24;