Skip to content

Commit

Permalink
add datestamp, analagous to timestamp
Browse files Browse the repository at this point in the history
partial fix for tessel#3
  • Loading branch information
srl295 committed Aug 8, 2015
1 parent 6948f1d commit 5551c3a
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 5551c3a

Please sign in to comment.