|
|
@ -505,6 +505,10 @@ public:
|
|
|
|
virtual ~PowerControl()
|
|
|
|
virtual ~PowerControl()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GpioControl::TurnOff(m_cmds, m_delayCloseTime);
|
|
|
|
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()
|
|
|
|
std::string GetStatus()
|
|
|
@ -525,6 +529,10 @@ public:
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
void TurnOn()
|
|
|
|
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);
|
|
|
|
GpioControl::TurnOn(m_cmds);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|