Clarified some debug messages

This commit is contained in:
petriVM18 2020-07-08 15:19:49 +02:00
parent 7652b33e11
commit 6f4ec5eafd

View File

@ -332,6 +332,7 @@ void DeviceHandlerBase::callChildStatemachine() {
}
void DeviceHandlerBase::setTransition(Mode_t modeTo, Submode_t submodeTo) {
sif::debug<<"DeviceHandlerBase::setTransition"<<std::endl;
triggerEvent(CHANGING_MODE, modeTo, submodeTo);
childTransitionDelay = getTransitionDelayMs(mode, modeTo);
transitionSourceMode = mode;
@ -829,7 +830,7 @@ ReturnValue_t DeviceHandlerBase::enableReplyInReplyMap(
void DeviceHandlerBase::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
setMode(getBaseMode(mode));
sif::debug<<"Mode: "<<mode<<" reached"<<std::endl;
sif::debug<<"DeviceHandlerBase::doTransition Mode: "<<mode<<" reached"<<std::endl;
}
uint32_t DeviceHandlerBase::getTransitionDelayMs(Mode_t modeFrom,
@ -907,6 +908,7 @@ ReturnValue_t DeviceHandlerBase::checkModeCommand(Mode_t commandedMode,
void DeviceHandlerBase::startTransition(Mode_t commandedMode,
Submode_t commandedSubmode) {
sif::debug<<" DeviceHandlerBase::startTransition"<<std::endl;
switch (commandedMode) {
case MODE_ON:
if (mode == MODE_OFF) {