diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-26 17:54:54 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-26 17:54:54 -0700 |
commit | 0aeb4ea8e38e014aa5e22fd0d7349fd855f65df6 (patch) | |
tree | f26533efc0ea41a72ccd72998d2d24a3f7dc6a13 /gpsutils.c | |
parent | c62422428a31bad52c665a20fede7c6ab4d1d301 (diff) | |
download | gpsd-0aeb4ea8e38e014aa5e22fd0d7349fd855f65df6.tar.gz |
gpsd_error_model(): be more consistent with HERR_SET.
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -330,7 +330,8 @@ void gps_merge_fix(struct gps_fix_t *to, to->climb = from->climb; if ((transfer & TIMERR_SET) != 0) to->ept = from->ept; - if ((transfer & HERR_SET) != 0) { + if (0 != isfinite(from->epx) && + 0 != isfinite(from->epy)) { to->epx = from->epx; to->epy = from->epy; } |