From e1a3c3e8ca996e449e84102aa51e970379cdf2e0 Mon Sep 17 00:00:00 2001 From: emanuel Date: Wed, 2 Dec 2020 17:01:01 +0000 Subject: [PATCH] Protected zone load debug --- src/cam.c | 2 +- src/config.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cam.c b/src/cam.c index 8174413..259871a 100644 --- a/src/cam.c +++ b/src/cam.c @@ -387,7 +387,7 @@ void *ca_service(void *fc) { while (!facilities->exit) { usleep(1000*50); - if ( lightship_check(facilities->lightship) ) { + if (lightship_check(facilities->lightship)) { rv = mk_cam(facilities, bdr->data.buf, (uint32_t *) &bdr->data.size); if (rv) { continue; diff --git a/src/config.c b/src/config.c index d9658db..ab6a8bf 100644 --- a/src/config.c +++ b/src/config.c @@ -211,6 +211,7 @@ int itss_config(void* facilities_s, char* config_file) { facilities->lightship->pz[i] = zone; ++facilities->lightship->pz_len; ++i; + syslog_debug("[facilities] [config] loaded protection zone @ (%ld, %ld)", zone->protectedZoneLatitude, zone->protectedZoneLongitude); } else { ASN_STRUCT_FREE(asn_DEF_ProtectedCommunicationZone, zone); }