diff options
-rw-r--r-- | binding/afm-gps-binding.c | 4 |
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); |