diff --git a/src/config.c b/src/config.c index 90a0814..fc10e58 100644 --- a/src/config.c +++ b/src/config.c @@ -316,10 +316,10 @@ int facilities_config() { } // Message version - if (!strcmp("v1", etsi_its_cfg->facilities.default_message_version)) { + if (!strcmp("v1", etsi_its_cfg->facilities.mver.default_version)) { log_error("[config] only default message version 2 is supported"); return -1; - } else if (!strcmp("v2", etsi_its_cfg->facilities.default_message_version)) { + } else if (!strcmp("v2", etsi_its_cfg->facilities.mver.default_version)) { facilities.pver.defaultv = 2; } else { log_warn("[config] unrecognized default messages version :: using version 2");