summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 338857d9..c8c19362 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1633,6 +1633,12 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed)
{
char buf[GPS_JSON_RESPONSE_MAX * 4];
+ if ((changed & AIS_SET) != 0)
+ if (device->gpsdata.ais.type == 24
+ && device->gpsdata.ais.type24.part != both
+ && !sub->policy.split24)
+ continue;
+
json_data_report(changed,
device, &sub->policy,
buf, sizeof(buf));