Protected zone load debug

This commit is contained in:
emanuel 2020-12-02 17:01:01 +00:00
parent 943a976cae
commit e1a3c3e8ca
2 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,7 @@ void *ca_service(void *fc) {
while (!facilities->exit) { while (!facilities->exit) {
usleep(1000*50); 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); rv = mk_cam(facilities, bdr->data.buf, (uint32_t *) &bdr->data.size);
if (rv) { if (rv) {
continue; continue;

View File

@ -211,6 +211,7 @@ int itss_config(void* facilities_s, char* config_file) {
facilities->lightship->pz[i] = zone; facilities->lightship->pz[i] = zone;
++facilities->lightship->pz_len; ++facilities->lightship->pz_len;
++i; ++i;
syslog_debug("[facilities] [config] loaded protection zone @ (%ld, %ld)", zone->protectedZoneLatitude, zone->protectedZoneLongitude);
} else { } else {
ASN_STRUCT_FREE(asn_DEF_ProtectedCommunicationZone, zone); ASN_STRUCT_FREE(asn_DEF_ProtectedCommunicationZone, zone);
} }