diff --git a/app/src/main/cpp/GPIOControl.h b/app/src/main/cpp/GPIOControl.h index 54ceb729..792a8500 100644 --- a/app/src/main/cpp/GPIOControl.h +++ b/app/src/main/cpp/GPIOControl.h @@ -505,6 +505,10 @@ public: virtual ~PowerControl() { GpioControl::TurnOff(m_cmds, m_delayCloseTime); +#ifdef OUTPUT_DBG_INFO + std::string status = GetStatus(); + XYLOG(XYLOG_SEVERITY_INFO, "PWR After TurnOff %s", status.c_str()); +#endif } std::string GetStatus() @@ -525,6 +529,10 @@ public: protected: void TurnOn() { +#ifdef OUTPUT_DBG_INFO + std::string status = GetStatus(); + XYLOG(XYLOG_SEVERITY_INFO, "PWR Before TurnOn %s", status.c_str()); +#endif GpioControl::TurnOn(m_cmds); }