summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-25 13:32:06 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-25 13:32:06 -0500
commit5f4a2717737a4c8c5a94ca70f47893db83a7cc30 (patch)
tree0ee988275f485af925468e5640bc9c0e506bb526 /lcdgps.c
parente1b64326fdd3037c5a380e9e85e549350bb4bde5 (diff)
downloadgpsd-5f4a2717737a4c8c5a94ca70f47893db83a7cc30.tar.gz
The raw_hook mwember and set_raw_hook are gone; client API cleanup is done.
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lcdgps.c b/lcdgps.c
index a89257cf..9246912c 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -211,9 +211,7 @@ static void reset_lcd(void) {
static enum deg_str_type deg_type = deg_dd;
/* This gets called once for each new sentence. */
-static void update_lcd(struct gps_data_t *gpsdata,
- char *message UNUSED,
- size_t len UNUSED)
+static void update_lcd(struct gps_data_t *gpsdata)
{
char tmpbuf[255];
#ifdef CLIMB
@@ -461,7 +459,6 @@ int main(int argc, char *argv[])
reset_lcd();
/* Here's where updates go. */
- gps_set_raw_hook(&gpsdata, update_lcd);
gps_stream(&gpsdata, WATCH_ENABLE, NULL);
for (;;) { /* heart of the client */
@@ -483,6 +480,7 @@ int main(int argc, char *argv[])
}
else if (data) {
(void)gps_read(&gpsdata);
+ update_lcd(&gpsdata);
}
}