dhb multiple replies support #416
@ -308,11 +308,11 @@ void DeviceHandlerBase::doStateMachine() {
|
||||
uint32_t currentUptime;
|
||||
Clock::getUptime(¤tUptime);
|
||||
if (currentUptime - timeoutStart >= childTransitionDelay) {
|
||||
#if FSFW_VERBOSE_LEVEL >= 1
|
||||
#if FSFW_VERBOSE_LEVEL >= 1 && FSFW_OBJ_EVENT_TRANSLATION == 0
|
||||
char printout[60];
|
||||
gaisser marked this conversation as resolved
|
||||
sprintf(printout, "Transition timeout (%lu) occured !",
|
||||
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",
|
||||
RETURN_FAILED, printout);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user
This information is part of the event below (Line 319), which is printed as debug output as well. Is there a special reason to print it twice?
It is not printed if
FSFW_OBJ_EVENT_TRANSLATION == 0
. I suggest to change#if FSFW_VERBOSE_LEVEL >= 1
to#if FSFW_VERBOSE_LEVEL >= 1 && FSFW_OBJ_EVENT_TRANSLATION == 0
This is something I wrote and we decided to keep it in there because it's a useful printout
Ok, than we keep it but I disagree with the comment:
/* Very common configuration error, so print it */
This happens in flight as well if your device does not respond, which happens from time to time for radiation.
I think the second one is a good idea. Otherwise you will just spam your console with duplicate information.