From 5551c3a2f07d96d6b856efcc813dc8645b7cb0e1 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Sat, 8 Aug 2015 15:27:23 -0700 Subject: [PATCH] add datestamp, analagous to timestamp partial fix for tessel/gps-a2235h#3 --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b3e8b8b..0f94602 100644 --- a/index.js +++ b/index.js @@ -137,11 +137,13 @@ GPS.prototype._checkConnection = function(){ lat: hw.gps_get_latitude(), lon: hw.gps_get_longitude(), speed: hw.gps_get_speed(), - timestamp: hw.gps_get_time() + timestamp: hw.gps_get_time(), + datestamp: hw.gps_get_date() }); self.emit('altitude', { alt: hw.gps_get_altitude(), - timestamp: hw.gps_get_time() + timestamp: hw.gps_get_time(), + datestamp: hw.gps_get_date() }); self.emit('fix', { numSat: hw.gps_get_satellites()