summaryrefslogtreecommitdiff
path: root/libgps_dbus.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-26 16:50:55 -0700
committerGary E. Miller <gem@rellim.com>2019-03-26 16:50:55 -0700
commitee4eab55909c36614135cd3f75b566fc06f60821 (patch)
tree6a0462535b6c01074f3c4fbf3e40b7a4b5d85c69 /libgps_dbus.c
parentd2c0912061d47f1a4be39accb541a05877fec5e6 (diff)
downloadgpsd-ee4eab55909c36614135cd3f75b566fc06f60821.tar.gz
libgps_dbus: Don't throw away eph, use it.
Diffstat (limited to 'libgps_dbus.c')
-rw-r--r--libgps_dbus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libgps_dbus.c b/libgps_dbus.c
index e407fb3e..d91bae66 100644
--- a/libgps_dbus.c
+++ b/libgps_dbus.c
@@ -39,8 +39,6 @@ static DBusConnection *connection;
static DBusHandlerResult handle_gps_fix(DBusMessage * message)
{
DBusError error;
- /* this packet format was designed before we split eph */
- double eph;
const char *gpsd_devname = NULL;
dbus_error_init(&error);
@@ -52,7 +50,7 @@ static DBusHandlerResult handle_gps_fix(DBusMessage * message)
DBUS_TYPE_DOUBLE, &share_gpsdata->fix.ept,
DBUS_TYPE_DOUBLE, &share_gpsdata->fix.latitude,
DBUS_TYPE_DOUBLE, &share_gpsdata->fix.longitude,
- DBUS_TYPE_DOUBLE, &eph,
+ DBUS_TYPE_DOUBLE, &share_gpsdata->fix.eph,
DBUS_TYPE_DOUBLE, &share_gpsdata->fix.altitude,
DBUS_TYPE_DOUBLE, &share_gpsdata->fix.epv,
DBUS_TYPE_DOUBLE, &share_gpsdata->fix.track,