Protected zone load debug
This commit is contained in:
parent
943a976cae
commit
e1a3c3e8ca
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue