adapted event name

This commit is contained in:
2021-11-25 14:09:06 +01:00
parent fa89da4438
commit 14ba11738b
6 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
/**
* @brief Auto-generated event translation file. Contains 120 translations.
* @details
* Generated on: 2021-11-25 14:06:54
* Generated on: 2021-11-25 14:09:00
*/
#include "translateEvents.h"
@ -124,7 +124,7 @@ const char *MRAM_DUMP_FINISHED_STRING = "MRAM_DUMP_FINISHED";
const char *INVALID_TC_FRAME_STRING = "INVALID_TC_FRAME";
const char *INVALID_FAR_STRING = "INVALID_FAR";
const char *CARRIER_LOCK_STRING = "CARRIER_LOCK";
const char *BIT_LOCK_STRING = "BIT_LOCK";
const char *BIT_LOCK_PDEC_STRING = "BIT_LOCK_PDEC";
const char * translateEvents(Event event) {
switch( (event & 0xffff) ) {
@ -367,7 +367,7 @@ const char * translateEvents(Event event) {
case(11903):
return CARRIER_LOCK_STRING;
case(11904):
return BIT_LOCK_STRING;
return BIT_LOCK_PDEC_STRING;
default:
return "UNKNOWN_EVENT";
}

View File

@ -246,7 +246,7 @@ void PdecHandler::checkLocks() {
}
if (!(clcw & NO_BITLOCK_MASK) && (lastClcw & NO_BITLOCK_MASK)) {
// Bit lock changed from 0 to 1
triggerEvent(BIT_LOCK);
triggerEvent(BIT_LOCK_PDEC);
}
lastClcw = clcw;
}

View File

@ -82,7 +82,7 @@ public:
//! [EXPORT] : [COMMENT] Carrier lock detected
static const Event CARRIER_LOCK = MAKE_EVENT(3, severity::INFO);
//! [EXPORT] : [COMMENT] Bit lock detected (data valid)
static const Event BIT_LOCK = MAKE_EVENT(4, severity::INFO);
static const Event BIT_LOCK_PDEC = MAKE_EVENT(4, severity::INFO);
private: