Let OBUs check CAMs
This commit is contained in:
parent
18ae6f1182
commit
1da612443b
|
|
@ -193,7 +193,14 @@ int itss_config(void* facilities_s, char* config_file) {
|
||||||
fseek(fp, 0, SEEK_END);
|
fseek(fp, 0, SEEK_END);
|
||||||
uint16_t size = ftell(fp);
|
uint16_t size = ftell(fp);
|
||||||
fseek(fp, 0, SEEK_SET);
|
fseek(fp, 0, SEEK_SET);
|
||||||
if (!fread(pz_xml, 1, size, fp)) continue;
|
if (!size) {
|
||||||
|
fclose(fp);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!fread(pz_xml, 1, size, fp)) {
|
||||||
|
fclose(fp);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
ProtectedCommunicationZone_t *zone = calloc(1, sizeof(ProtectedCommunicationZone_t));
|
ProtectedCommunicationZone_t *zone = calloc(1, sizeof(ProtectedCommunicationZone_t));
|
||||||
|
|
|
||||||
|
|
@ -84,9 +84,7 @@ static int transport_indication(facilities_t *facilities, void* responder, uint8
|
||||||
switch (bdi->destinationPort) {
|
switch (bdi->destinationPort) {
|
||||||
case Port_cam:
|
case Port_cam:
|
||||||
|
|
||||||
if (facilities->station_type == 15) { // Currently only RSUs need to check CAMs
|
check_cam(facilities, bdi, its_msg);
|
||||||
check_cam(facilities, bdi, its_msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case Port_denm:
|
case Port_denm:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue