diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-26 13:29:03 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-26 13:29:03 -0700 |
commit | c0acd60d89170ef91162912f7ef450b8dbdae9a8 (patch) | |
tree | 265a14e2cceda13e76ccedfd4633d9fa87b0967f /dbusexport.c | |
parent | a9b33fb7ff1bfef074148951d8a276b6edeea407 (diff) | |
download | gpsd-c0acd60d89170ef91162912f7ef450b8dbdae9a8.tar.gz |
dbusexport: Use eph at hand, don't recompute.
Diffstat (limited to 'dbusexport.c')
-rw-r--r-- | dbusexport.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dbusexport.c b/dbusexport.c index d89ecac2..79ca033b 100644 --- a/dbusexport.c +++ b/dbusexport.c @@ -36,8 +36,6 @@ void send_dbus_fix(struct gps_device_t *channel) /*DBusMessageIter iter; */ dbus_uint32_t serial; /* collected, but not used */ char *gpsd_devname; - /* this packet format was designed before we split eph */ - double eph; /* if the connection is non existent, return without doing anything */ if (connection == NULL) @@ -45,8 +43,6 @@ void send_dbus_fix(struct gps_device_t *channel) gpsdata = &(channel->gpsdata); gpsfix = &(gpsdata->fix); - /* this packet format was designed before we split eph */ - eph = EMIX(gpsfix->epx, gpsfix->epy); gpsd_devname = gpsdata->dev.path; /* Send the named signal. */ @@ -57,7 +53,7 @@ void send_dbus_fix(struct gps_device_t *channel) DBUS_TYPE_DOUBLE, &(gpsfix->ept), DBUS_TYPE_DOUBLE, &(gpsfix->latitude), DBUS_TYPE_DOUBLE, &(gpsfix->longitude), - DBUS_TYPE_DOUBLE, &(eph), + DBUS_TYPE_DOUBLE, &(gpsfix->eph), DBUS_TYPE_DOUBLE, &(gpsfix->altitude), DBUS_TYPE_DOUBLE, &(gpsfix->epv), DBUS_TYPE_DOUBLE, &(gpsfix->track), |