diff options
author | Christian Gagneraud <cgagneraud@techworks.ie> | 2012-06-05 14:12:10 +0100 |
---|---|---|
committer | Christian Gagneraud <chris@techworks.ie> | 2012-06-05 15:58:02 +0100 |
commit | 6b8f80981f791bdd0e1f35ea6fd40d04d5f01924 (patch) | |
tree | 7ea085a586d66cf1637dac5b3e5b495312929c44 /gpsdecode.c | |
parent | 0e8d0f6367a25c773021b9b3a73b7ce8cb953af7 (diff) | |
download | gpsd-6b8f80981f791bdd0e1f35ea6fd40d04d5f01924.tar.gz |
[AIS] Do scaling/offset operations only in json dump
splint and check pass.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index 0198a66c..3ade9b8c 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -155,7 +155,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen) switch(ais->type8.fid) { case 11: /* IMO236 - Met/Hydro message */ (void)snprintf(buf + strlen(buf), buflen - strlen(buf), - "|%d|%d|%02uT%02u:%02uZ|%u|%u|%u|%u|%d|%u|%d|%u|%u|%u|%d|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%d|%u|%u|%u", + "|%d|%d|%02uT%02u:%02uZ|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u", ais->type8.dac1fid11.lon, ais->type8.dac1fid11.lat, ais->type8.dac1fid11.day, |