Add mbtk_source git commit info
Change-Id: I9867613657db269bba81d28c4b3712062ae41bdd
diff --git a/mbtk/libmbtk_gnss/mbtk_gnss.c b/mbtk/libmbtk_gnss/mbtk_gnss.c
index 3e22cf7..18e8bbf 100755
--- a/mbtk/libmbtk_gnss/mbtk_gnss.c
+++ b/mbtk/libmbtk_gnss/mbtk_gnss.c
@@ -244,7 +244,7 @@
return -1;
}
- while (p <= q)
+ while (p <= q)
{
tmp = memchr(p, ',', q-p);
if (tmp == NULL)
@@ -262,7 +262,7 @@
count += 1;
}
}
-
+
if (tmp <= q)
{
tmp += 1;
@@ -313,9 +313,9 @@
memcpy(tmp_char, time.head + 4, 2);
tmp_time.tm_sec = atoi(tmp_char);
tmp_time.tm_isdst = -1;
-
+
#if MBTK_GNSS_LOG_ENABLED
- LOGD("data:%d-%d-%d %d:%d:%d", tmp_time.tm_year + 1900,
+ LOGD("data:%d-%d-%d %d:%d:%d", tmp_time.tm_year + 1900,
tmp_time.tm_mon,
tmp_time.tm_mday,
tmp_time.tm_hour,
@@ -377,7 +377,7 @@
locl_info->latitude = str2float(tok.head, tok.end);
tok = longitude;
- if (tok.head + 6 > tok.end)
+ if (tok.head + 6 > tok.end)
{
LOGD("longitude get fail");
return -1;
@@ -475,7 +475,7 @@
return -1;
}
locl_info->flags |= GNSS_LOCATION_HAS_LAT_LONG;
-
+
ret = nmea_update_altitude(locl_info, tok_altitude);
if(ret < 0)
{
@@ -920,3 +920,8 @@
}
}
+void mbtk_gnss_lib_info_print()
+{
+ MBTK_SOURCE_INFO_PRINT("mbtk_gnss_lib");
+}
+