summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChanghyeok Bae <changhyeok.bae@gmail.com>2019-11-26 14:18:28 +0100
committerScott Murray <scott.murray@konsulko.com>2020-02-24 21:48:34 +0000
commitbc5b065b2c18d9e7f7b87347a1acd615b32bd52b (patch)
tree150978777e0020756367a423de1eeb98f1513fcd
parent945824678f7a26036ee4f47b64a0e51ace4289f8 (diff)
Change read API for gpsd 3.19
Bug-AGL: SPEC-2932 Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com> Change-Id: I8e4520e4a92613000759500de79ba52b00ef4e73
-rw-r--r--binding/afm-gps-binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/afm-gps-binding.c b/binding/afm-gps-binding.c
index 873c264..75f4176 100644
--- a/binding/afm-gps-binding.c
+++ b/binding/afm-gps-binding.c
@@ -278,7 +278,7 @@ static void *data_poll(void *ptr)
continue;
}
pthread_mutex_lock(&mutex);
- if (gps_read(&data) == -1) {
+ if (gps_read(&data, NULL, 0) == -1) {
AFB_ERROR("Cannot read from GPS daemon.\n");
pthread_mutex_unlock(&mutex);
break;
@@ -336,7 +336,7 @@ static int gps_init()
// due to the gpsd.socket race condition need to loop till initial event
do {
- gps_read(&data);
+ gps_read(&data, NULL, 0);
} while (!gps_waiting(&data, MSECS_TO_USECS(2500)) && tries--);
return pthread_create(&thread, NULL, &data_poll, NULL);