SAEM compounded consts

This commit is contained in:
emanuel 2021-06-14 18:06:08 +01:00
parent aace2a33db
commit d84794d539
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ SAEM_CODE_R saem_check(void* fc, press_t* press, SAEM_t* saem) {
int rv = 0; int rv = 0;
if (saem->header.messageID != messageID_saem) { if (saem->header.messageID != ItsPduHeader__messageID_saem) {
return SAEM_INVALID_HEADER_MESSAGE_ID; return SAEM_INVALID_HEADER_MESSAGE_ID;
} }
@ -102,7 +102,7 @@ int mk_saem(facilities_t* facilities, uint8_t* b_saem, uint32_t* b_saem_len) {
/* header */ /* header */
saem->header.protocolVersion = 2; saem->header.protocolVersion = 2;
saem->header.messageID = messageID_saem; saem->header.messageID = ItsPduHeader__messageID_saem;
pthread_mutex_lock(&facilities->id.lock); pthread_mutex_lock(&facilities->id.lock);
saem->header.stationID = facilities->id.value; saem->header.stationID = facilities->id.value;