This commit is contained in:
parent
b27694321f
commit
8105e5f689
@ -200,7 +200,11 @@ void EiveSystem::i2cRecoveryLogic() {
|
|||||||
TaskFactory::delayTask(500);
|
TaskFactory::delayTask(500);
|
||||||
// We already tried an I2C recovery but the bus is still broken.
|
// We already tried an I2C recovery but the bus is still broken.
|
||||||
// Send reboot request to core controller.
|
// Send reboot request to core controller.
|
||||||
sendSelfRebootCommand();
|
ReturnValue_t result = sendSelfRebootCommand();
|
||||||
|
if(result != returnvalue::OK) {
|
||||||
|
sif::error << "Sending a reboot command has failed" << std::endl;
|
||||||
|
}
|
||||||
|
// If the previous operation failed, it should be re-attempted the next task cycle.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -299,7 +303,13 @@ void EiveSystem::pdecRecoveryLogic() {
|
|||||||
// Some delay to ensure that the event is stored in the persistent TM store as well.
|
// Some delay to ensure that the event is stored in the persistent TM store as well.
|
||||||
TaskFactory::delayTask(500);
|
TaskFactory::delayTask(500);
|
||||||
// Send reboot command.
|
// Send reboot command.
|
||||||
sendSelfRebootCommand();
|
ReturnValue_t result = sendSelfRebootCommand();
|
||||||
|
if(result != returnvalue::OK) {
|
||||||
|
sif::error << "Sending a reboot command has failed" << std::endl;
|
||||||
|
// If the previous operation failed, it should be re-attempted the next task cycle.
|
||||||
|
ptmeResetWasAttemptedCd.resetTimer();
|
||||||
|
}
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
// Try one full PDEC reset.
|
// Try one full PDEC reset.
|
||||||
CommandMessage msg;
|
CommandMessage msg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user