diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2015-05-08 11:23:21 +0200 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2015-05-08 11:23:21 +0200 |
commit | 955d3679ad44b8aa716fe8a35399c8316f783266 (patch) | |
tree | e355cae66811011602e226f01258b0913ca11145 /driver_nmea2000.c | |
parent | 66df508ef49a6b899f751ead2a3b9cc8d8125d17 (diff) | |
download | gpsd-955d3679ad44b8aa716fe8a35399c8316f783266.tar.gz |
Fix time encoding.
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r-- | driver_nmea2000.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c index df1a0939..8e0f15c3 100644 --- a/driver_nmea2000.c +++ b/driver_nmea2000.c @@ -614,6 +614,7 @@ static gps_mask_t hnd_129793(unsigned char *bu, int len, PGN *pgn, struct gps_de time = getleu32(bu, 14); if (time != 0xffffffff) { + time = time / 10000; ais->type4.second = time % 60; time = time / 60; ais->type4.minute = time % 60; time = time / 60; ais->type4.hour = time % 24; |