SAEM compounded consts
This commit is contained in:
parent
aace2a33db
commit
d84794d539
4
src/sa.c
4
src/sa.c
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue