Fix bug in handling of error memory NOP entries

This commit is contained in:
Mario Hüttel 2021-07-16 17:29:04 +02:00
parent 9c872f6746
commit 864c3fa0f2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ static int word_to_error_memory_entry(uint32_t entry_data, struct error_memory_e
if (!out)
return -1002;
if (entry_data == SAFETY_MEMORY_ERR_ENTRY_NOP) {
if (entry_data == SAFETY_MEMORY_NOP_ENTRY) {
out->flag_num = 0U;
out->type = SAFETY_MEMORY_ERR_ENTRY_NOP;
out->counter = 0U;