summaryrefslogtreecommitdiff
path: root/xgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-22 20:25:28 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-22 20:25:28 +0000
commite78f332e63b8cf8292c4b19f3794ebee067a165f (patch)
tree311a71e23eaa612ed9d0cc1a98b98ab21977c780 /xgps.c
parent139b5e991313fe736cd735d271b6d439d761af85 (diff)
downloadgpsd-e78f332e63b8cf8292c4b19f3794ebee067a165f.tar.gz
Second step in library refactoring.
We need to make profiling work again, also gpsd.py is broken.
Diffstat (limited to 'xgps.c')
-rw-r--r--xgps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xgps.c b/xgps.c
index c8b03238..1a09f11c 100644
--- a/xgps.c
+++ b/xgps.c
@@ -268,7 +268,8 @@ static void update_panel(struct gps_data_t *gpsdata, char *message)
XmStringFree(string[i]);
}
/* here are the value fields */
- XmTextFieldSetString(text_1, gpsdata->utc);
+ unix_to_iso8661(gpsdata->fix.time, s);
+ XmTextFieldSetString(text_1, s);
sprintf(s, "%f %c", fabsf(gpsdata->fix.latitude), (gpsdata->fix.latitude < 0) ? 'S' : 'N');
XmTextFieldSetString(text_2, s);
sprintf(s, "%f %c", fabsf(gpsdata->fix.longitude), (gpsdata->fix.longitude < 0) ? 'W' : 'E');