Skip to content

Commit

Permalink
Merge pull request #18 from srl295/datestamp
Browse files Browse the repository at this point in the history
add datestamp, analagous to timestamp
  • Loading branch information
johnnyman727 committed Aug 10, 2015
2 parents 6948f1d + 5551c3a commit 9a581e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9a581e6

Please sign in to comment.