|
|
@ -4922,7 +4922,7 @@ bool CPhoneDevice::OpenSensors(int sensortype)
|
|
|
|
#ifndef USING_N938
|
|
|
|
#ifndef USING_N938
|
|
|
|
#ifndef USING_PTZ
|
|
|
|
#ifndef USING_PTZ
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
GpioControl::TurnOn(CMD_SET_5V_PWR_ENABLE);
|
|
|
|
// GpioControl::TurnOn(CMD_SET_5V_PWR_ENABLE);
|
|
|
|
GpioControl::TurnOn(CMD_SET_PTZ_PWR_ENABLE);
|
|
|
|
GpioControl::TurnOn(CMD_SET_PTZ_PWR_ENABLE);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
@ -4995,7 +4995,7 @@ bool CPhoneDevice::CloseSensors(int sensortype, uint32_t delayedCloseTime)
|
|
|
|
// GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE);
|
|
|
|
// GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE);
|
|
|
|
#ifndef USING_PTZ
|
|
|
|
#ifndef USING_PTZ
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
GpioControl::TurnOffImmediately(CMD_SET_5V_PWR_ENABLE);
|
|
|
|
// GpioControl::TurnOffImmediately(CMD_SET_5V_PWR_ENABLE);
|
|
|
|
GpioControl::TurnOffImmediately(CMD_SET_PTZ_PWR_ENABLE);
|
|
|
|
GpioControl::TurnOffImmediately(CMD_SET_PTZ_PWR_ENABLE);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -5011,7 +5011,7 @@ bool CPhoneDevice::CloseSensors(int sensortype, uint32_t delayedCloseTime)
|
|
|
|
// GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE);
|
|
|
|
// GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE);
|
|
|
|
#ifndef USING_PTZ
|
|
|
|
#ifndef USING_PTZ
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
GpioControl::TurnOff(CMD_SET_5V_PWR_ENABLE, delayedCloseTime);
|
|
|
|
// GpioControl::TurnOff(CMD_SET_5V_PWR_ENABLE, delayedCloseTime);
|
|
|
|
GpioControl::TurnOff(CMD_SET_PTZ_PWR_ENABLE, delayedCloseTime);
|
|
|
|
GpioControl::TurnOff(CMD_SET_PTZ_PWR_ENABLE, delayedCloseTime);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|