[bugfix][T108][bug-view-1472]The parameter flags of the GNSS callback in the Gaoxin version of [GNSS] is not printed in the callback

Only Configure: No
Affected branch: GSW_V1453
Affected module: GNSS
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no

Change-Id: I1c8919ce02bf5fbc0cbf324e9cbc95c4592d7624
diff --git a/mbtk/test/libgsw_lib/gsw_gnss_test.c b/mbtk/test/libgsw_lib/gsw_gnss_test.c
index 1930846..7878407 100755
--- a/mbtk/test/libgsw_lib/gsw_gnss_test.c
+++ b/mbtk/test/libgsw_lib/gsw_gnss_test.c
@@ -117,8 +117,27 @@
     printf("%s",nmea);

 }

 

+void tmp_location_gnss_callack(GSW_GNSS_LOCATION_EXT_T* location)

+{

+    printf("Location Info:\n");

+    printf("  Size: %zu\n", location->legacyLocation.size);

+    printf("  Flags: %hu\n", location->legacyLocation.flags);

+    printf("  Latitude: %.6lf°\n", location->legacyLocation.latitude);

+    printf("  Longitude: %.6lf°\n", location->legacyLocation.longitude);

+    printf("  Altitude: %.2lf m\n", location->legacyLocation.altitude);

+    printf("  Speed: %.2f m/s\n", location->legacyLocation.speed);

+    printf("  Bearing: %.1f°\n", location->legacyLocation.bearing);

+    printf("  Accuracy: %.2f m\n", location->legacyLocation.accuracy);

+    printf("  Timestamp: %lld\n", location->legacyLocation.timestamp);

+    printf("Extended Accuracy:\n");

+    printf("  Horizontal: %.2f m (68%%)\n", location->horizontalAccuracyMeters);

+    printf("  Vertical: %.2f m (68%%)\n", location->verticalAccuracyMeters);

+    printf("  Speed: %.2f m/s (68%%)\n", location->speedAccuracyMetersPerSecond);

+    printf("  Bearing: %.1f° (68%%)\n", location->bearingAccuracyDegrees);

+}

+

 gsw_gnss_cb tmp_ptr = {

-    NULL,

+    tmp_location_gnss_callack,

     tmp_gnss_callack

 };