avoid duplicate printout
This commit is contained in:
parent
20e7fe6cb1
commit
054de9781b
@ -308,11 +308,11 @@ void DeviceHandlerBase::doStateMachine() {
|
|||||||
uint32_t currentUptime;
|
uint32_t currentUptime;
|
||||||
Clock::getUptime(¤tUptime);
|
Clock::getUptime(¤tUptime);
|
||||||
if (currentUptime - timeoutStart >= childTransitionDelay) {
|
if (currentUptime - timeoutStart >= childTransitionDelay) {
|
||||||
#if FSFW_VERBOSE_LEVEL >= 1
|
#if FSFW_VERBOSE_LEVEL >= 1 && FSFW_OBJ_EVENT_TRANSLATION == 0
|
||||||
char printout[60];
|
char printout[60];
|
||||||
sprintf(printout, "Transition timeout (%lu) occured !",
|
sprintf(printout, "Transition timeout (%lu) occured !",
|
||||||
static_cast<unsigned long>(childTransitionDelay));
|
static_cast<unsigned long>(childTransitionDelay));
|
||||||
/* Very common configuration error, so print it */
|
/* Common configuration error for development, so print it */
|
||||||
printWarningOrError(sif::OutputTypes::OUT_WARNING, "doStateMachine",
|
printWarningOrError(sif::OutputTypes::OUT_WARNING, "doStateMachine",
|
||||||
RETURN_FAILED, printout);
|
RETURN_FAILED, printout);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user