summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--binding/afm-gps-binding.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/binding/afm-gps-binding.c b/binding/afm-gps-binding.c
index cadc6d2..ea40331 100644
--- a/binding/afm-gps-binding.c
+++ b/binding/afm-gps-binding.c
@@ -156,9 +156,11 @@ static void *data_poll(void *ptr)
break;
}
- jresp = populate_json_data(json_object_new_object());
- if (jresp != NULL)
- afb_event_push(location_event, jresp);
+ if (!(data.set & (TRACKERR_SET | SPEEDERR_SET| CLIMBERR_SET))) {
+ jresp = populate_json_data(json_object_new_object());
+ if (jresp != NULL)
+ afb_event_push(location_event, jresp);
+ }
pthread_mutex_unlock(&mutex);
}