summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Serbinski <adam@serbinski.com>2019-05-28 15:07:28 -0400
committerGary E. Miller <gem@rellim.com>2019-05-30 12:39:13 -0700
commit7dc469d38ead9ad16953d8debaf0eeaffd81c367 (patch)
treeabb05d0f9560e829d2589040b21749704637ab31
parent57c23d4e7ccd022598cb03fb495f4842598a0f8b (diff)
downloadgpsd-7dc469d38ead9ad16953d8debaf0eeaffd81c367.tar.gz
Android HAL: update timestamp reported to frameworks in car mode
Signed-off-by: Gary E. Miller <gem@rellim.com>
-rw-r--r--android/hal/Gnss.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/hal/Gnss.cpp b/android/hal/Gnss.cpp
index 2180e418..792ce5c9 100644
--- a/android/hal/Gnss.cpp
+++ b/android/hal/Gnss.cpp
@@ -144,6 +144,7 @@ Return<bool> Gnss::start() {
this->reportLocation(location);
} else if (is_automotive && last_recorded_fix == 0){
+ location.timestamp = (long) time(NULL);
this->reportLocation(location);
}