pdec config corrupted event, readback config used as parameters
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...
This commit is contained in:
parent
da71aea101
commit
6febf6242a
@ -590,15 +590,18 @@ void PdecHandler::checkConfig() {
|
|||||||
uint32_t secondWord = 0;
|
uint32_t secondWord = 0;
|
||||||
result = pdecConfig.createSecondWord(&secondWord);
|
result = pdecConfig.createSecondWord(&secondWord);
|
||||||
if (result != returnvalue::OK) {
|
if (result != returnvalue::OK) {
|
||||||
// This should normally never happen during runtime. So here is just
|
// This should normally never happen during runtime. So here is just
|
||||||
// output a warning
|
// output a warning
|
||||||
sif::warning << "PdecHandler::checkConfig: Failed to create second word" << std::endl;
|
sif::warning << "PdecHandler::checkConfig: Failed to create second word"
|
||||||
return;
|
<< std::endl;
|
||||||
}
|
return;
|
||||||
if (firstWord != pdecConfig.readbackFirstWord() or
|
|
||||||
secondWord != pdecConfig.readbackSecondWord()) {
|
|
||||||
triggerEvent(PDEC_CONFIG_CORRUPTED, firstWord, secondWord);
|
|
||||||
}
|
}
|
||||||
|
uint32_t readbackFirstWord = pdecConfig.readbackFirstWord();
|
||||||
|
uint32_t readbackSecondWord = pdecConfig.readbackSecondWord();
|
||||||
|
if (firstWord != readbackFirstWord or
|
||||||
|
secondWord != readbackSecondWord) {
|
||||||
|
triggerEvent(PDEC_CONFIG_CORRUPTED, readbackFirstWord, readbackSecondWord);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PdecHandler::handleNewTc() {
|
void PdecHandler::handleNewTc() {
|
||||||
|
Loading…
Reference in New Issue
Block a user