diff options
author | Gary E. Miller <gem@rellim.com> | 2018-10-24 18:05:51 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-10-24 18:05:51 -0700 |
commit | 7de89309d4d880e8607d51aea918a5808c8e1b6f (patch) | |
tree | 003b2ce4f9e406632f9e80f5960aeea8b2f4add9 /driver_italk.c | |
parent | f1344151085131de7765ce37c9e5dab40c43e56d (diff) | |
download | gpsd-7de89309d4d880e8607d51aea918a5808c8e1b6f.tar.gz |
driver_italk: raw reporting broken. Don't ship raw reports.
Diffstat (limited to 'driver_italk.c')
-rw-r--r-- | driver_italk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_italk.c b/driver_italk.c index dfcd1874..4863e651 100644 --- a/driver_italk.c +++ b/driver_italk.c @@ -257,7 +257,7 @@ static gps_mask_t decode_itk_pseudo(struct gps_device_t *session, return 0; // bail if measurement time not valid. session->newdata.time = gpsd_gpstime_resolve(session, - (unsigned short int)getleu16((char *)buf, 7 + 8), + (unsigned short int)getleu16((char *)buf, 7 + 8), (unsigned int)getleu32(buf, 7 + 38) / 1000.0); /* this is so we can tell which never got set */ @@ -280,7 +280,8 @@ static gps_mask_t decode_itk_pseudo(struct gps_device_t *session, session->gpsdata.raw[i].codephase = NAN; session->gpsdata.raw[i].deltarange = NAN; } - return RAW_IS; + /* return RAW_IS; The above decode does not give reasonable results */ + return 0; /* do not report valid until decode is fixed */ } static gps_mask_t italk_parse(struct gps_device_t *session, |